You are here

function taxonomy_menu_ahah_helper in Taxonomy menu 6.3

AHAH helper

3 calls to taxonomy_menu_ahah_helper()
taxonomy_menu_ahah_path in ./taxonomy_menu.admin.inc
AHAH callback for Path Options
taxonomy_menu_ahah_term_sets in ./taxonomy_menu.admin.inc
AHAH callback for associating a term set to a menu group
taxonomy_menu_ahah_tids in ./taxonomy_menu.admin.inc
Ajax callback for Term Set Form

File

./taxonomy_menu.admin.inc, line 530
admin section for taxonomy menu

Code

function taxonomy_menu_ahah_helper() {
  $form_state = array(
    'storage' => NULL,
    'submitted' => TRUE,
  );
  $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['#post'] = $_POST;
  $form['#redirect'] = FALSE;
  $form['#programmed'] = FALSE;
  $form_state['post'] = $_POST;
  $form['#validate'] = NULL;
  $form['#submit'] = NULL;

  // For customly set #validate and #submit handlers.
  $form_state['submit_handlers'] = NULL;
  $form_state['validate_handlers'] = NULL;
  _taxonomy_menu_ahah_disable_validation($form);
  drupal_process_form($form_id, $form, $form_state);
  $form = drupal_rebuild_form($form_id, $form_state, $args, $form_build_id);
  return $form;
}