You are here

function _ajax_loader_settings_form_submit in Ajax loader 7

Submit handler.

_state

Parameters

$form:

File

includes/settings.ajax_loader.inc, line 102
Contains ajax loader settings form.

Code

function _ajax_loader_settings_form_submit($form, &$form_state) {
  $settings = array(
    'throbber' => $form_state['values']['throbber'],
    'hide_ajax_message' => $form_state['values']['hide_ajax_message'],
    'show_admin_paths' => $form_state['values']['show_admin_paths'],
  );
  variable_set('ajax_loader_settings', $settings);
  drupal_set_message(t('Your settings have been saved.'));
}