You are here

function cacheflush_preset_form_submit in CacheFlush 7

Same name and namespace in other branches
  1. 7.2 cacheflush.preset.inc \cacheflush_preset_form_submit()

Implements hook_formID_submit().

File

./cacheflush.preset.inc, line 159
Cacheflush module add/edit form for presets.

Code

function cacheflush_preset_form_submit(&$form, &$form_state) {

  // Save preset list.
  variable_set('cacheflush_preset_list', $form_state['cacheflush_preset_list']);
  drupal_set_message(t('Preset successfully saved.'), 'status');

  // Rebuild menu.
  node_types_rebuild();
  menu_rebuild();
}