image_system_file_system_settings_submit

function image_system_file_system_settings_submit

image_system_file_system_settings_submit($form, &$form_state)

Form submission handler for system_file_system_settings().

Adds a menu rebuild after the public file path has been changed, so that the menu router item depending on that file path will be regenerated.

File

modules/image/image.module, line 262
Exposes global functionality for creating image styles.

Code

function image_system_file_system_settings_submit($form, &$form_state) {
  if ($form['file_public_path']['#default_value'] !== $form_state['values']['file_public_path']) {
    variable_set('menu_rebuild_needed', TRUE);
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!image!image.module/function/image_system_file_system_settings_submit/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部