You are here

function image_system_file_system_settings_submit in Drupal 7

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
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);
  }
}