function image_system_file_system_settings_submit
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.
1 string reference to 'image_system_file_system_settings_submit'
- image_form_system_file_system_settings_alter in modules/
image/ image.module - Implements hook_form_FORM_ID_alter().
File
-
modules/
image/ image.module, line 262
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);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.