You are here

function power_menu_fields_configuration_form_submit in Power Menu 7.2

Handles form submission for power_menu_fields_configuration_form().

File

./power_menu.admin.inc, line 389
This contains all the admin stuff of the module

Code

function power_menu_fields_configuration_form_submit($form, &$form_state) {
  $menus = array();
  foreach ($form_state['values']['menus'] as $key => $vaue) {
    if ($key === $vaue) {
      $menus[] = $vaue;
    }
  }
  variable_set('power_menu_fields_menus', $menus);

  // Clear the caches that the manage fields link is added
  entity_info_cache_clear();
  menu_rebuild();
  drupal_set_message(t('The new Power Menu fields settings has been saved.'));
}