You are here

function taxonomy_menu_ahah_element_helper in Taxonomy menu 6.3

AHAH Helper 2

3 calls to taxonomy_menu_ahah_element_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 555
admin section for taxonomy menu

Code

function taxonomy_menu_ahah_element_helper($changed_elements) {
  unset($changed_elements['#prefix'], $changed_elements['#suffix']);
  $javascript = drupal_add_js(NULL, NULL, 'header');
  drupal_json(array(
    'status' => TRUE,
    'data' => theme('status_messages') . drupal_render($changed_elements),
    // rebuild just the part that needs to be changed
    'settings' => call_user_func_array('array_merge_recursive', $javascript['setting']),
  ));
}