You are here

function power_menu_configuration_handler_form_submit in Power Menu 7.2

Process handler form submissions.

File

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

Code

function power_menu_configuration_handler_form_submit($form, &$form_state) {
  $instance = power_menu_plugin_get_handler_instance_by_name(arg(6));
  if ($instance) {

    // Call form validation for given handler instance
    $instance
      ->configurationFormSubmit($form, $form_state);
  }

  // No errors? Redirect to Power Menu overview
  if (!form_get_errors()) {
    drupal_set_message(t('Handler settings updated.'));
    drupal_goto('admin/config/search/power_menu');
  }
}