You are here

function _prod_check_ahah_helper in Production check & Production monitor 6

Does the very standard things that must be done in any normal callback.

2 calls to _prod_check_ahah_helper()
prod_check_enable_nagios in includes/prod_check.admin.inc
Callback to add nagios settings.
prod_check_enable_xmlrpc in includes/prod_check.admin.inc
Callback to add xmlrpc settings.

File

includes/prod_check.admin.inc, line 379

Code

function _prod_check_ahah_helper() {
  $form_state = array(
    'storage' => NULL,
    'submitted' => FALSE,
  );
  $form_build_id = $_POST['form_build_id'];
  $form = form_get_cache($form_build_id, $form_state);
  $args = $form['#parameters'];
  $form_id = array_shift($args);
  $form_state['post'] = $form['#post'] = $_POST;

  // Enable the submit/validate handlers to determine whether AHAH-submittted.
  $form_state['ahah_submission'] = TRUE;
  $form['#programmed'] = $form['#redirect'] = FALSE;
  drupal_process_form($form_id, $form, $form_state);
  $form = drupal_rebuild_form($form_id, $form_state, $args, $form_build_id);
  return $form;
}