You are here

public function PowerMenuPathHandler::configurationFormSubmit in Power Menu 7.2

Overrides PowerMenuHandlerInterface::configurationFormSubmit

See also

PowerMenuHandlerInterface::configurationFormSubmit()

File

plugins/menu_handlers/PowerMenuPathHandler.class.php, line 58

Class

PowerMenuPathHandler
Implementation of the interface PowerMenuHandlerInterface.

Code

public function configurationFormSubmit(array $form, array &$form_state) {
  $selection = array();
  foreach ($form_state['values']['elements'] as $value) {
    if (!empty($value)) {
      $selection[] = $value;
    }
  }
  variable_set('power_menu_path_bundles', $selection);
  variable_set('power_menu_path_number', $form_state['values']['numbers']);
}