function ajax_ui_admin_submit in Ajax 6
Handles admin submissions
Parameters
$form Assox:
$form_state Assoc:
Return value
unknown
File
- ajax_ui/
ajax_ui.module, line 212  
Code
function ajax_ui_admin_submit($form, &$form_state) {
  $out = array();
  $out['types'] = array();
  $out['types']['default'] = array();
  foreach (element_children($form['checkboxes']) as $type) {
    $out['types']['default'][$type] = array();
    foreach (element_children($form['checkboxes'][$type]) as $option) {
      $out['types']['default'][$type][$option] = (bool) $form['checkboxes'][$type][$option]['#value'];
    }
  }
  variable_set('ajax', $out);
  drupal_set_message('Settings saved');
  return TRUE;
}