You are here

function groupmenu_admin_menu_overview_form_submit in Group Menu 7

Process result from Group Menu administration filter form.

File

./groupmenu.pages.inc, line 378
Page callbacks for groupmenu.

Code

function groupmenu_admin_menu_overview_form_submit($form, &$form_state) {
  switch ($form_state['clicked_button']['#id']) {
    case 'edit-submit':
      if (isset($form_state['values']['groupmenu_filter']) && $form_state['values']['groupmenu_filter'] != '') {
        $_SESSION['groupmenu_filter'][] = array(
          'groupmenu_filter',
          $form_state['values']['groupmenu_filter'],
        );
      }
      break;
    case 'edit-reset':
      $_SESSION['groupmenu_filter'] = array();
      break;
  }
}