You are here

function responsive_menu_overview_form_submit in Responsive and off-canvas menu 7

Same name and namespace in other branches
  1. 7.3 responsive_menu.module \responsive_menu_overview_form_submit()
  2. 7.2 responsive_menu.module \responsive_menu_overview_form_submit()

Submit handler to store fly-out variables.

1 string reference to 'responsive_menu_overview_form_submit'
responsive_menu_form_menu_overview_form_alter in ./responsive_menu.module
Implements hook_form_FORM_ID_alter().

File

./responsive_menu.module, line 43

Code

function responsive_menu_overview_form_submit($form, &$form_state) {
  foreach ($form_state['values'] as $key => $value) {
    if (strpos($key, 'mlid') !== FALSE) {
      if (!empty($value['flyleft'])) {

        // Store a variable for this menu item.
        variable_set('responsive_menu_flyleft_' . $key, TRUE);
      }
      else {

        // Remove any possible old variables.
        variable_del('responsive_menu_flyleft_' . $key);
      }
    }
  }
}