You are here

function taxonomy_manager_double_tree_ajax_callback in Taxonomy Manager 7

1 string reference to 'taxonomy_manager_double_tree_ajax_callback'
taxonomy_manager_double_tree_form in ./taxonomy_manager.admin.inc

File

./taxonomy_manager.admin.inc, line 2047

Code

function taxonomy_manager_double_tree_ajax_callback($form, $form_state) {
  $commands = array();
  $commands[] = ajax_command_prepend(NULL, theme('status_messages'));
  if ($form_state['values']['double_tree_values']['update_tree_left']) {
    $commands[] = ajax_command_insert('#taxonomy-manager .form-item-taxonomy-manager-tree', drupal_render($form['taxonomy']['manager']['tree']));
  }
  if ($form_state['values']['double_tree_values']['update_tree_right']) {
    $commands[] = ajax_command_insert('#taxonomy-manager .form-item-taxonomy2-manager-tree', drupal_render($form['taxonomy2']['manager']['tree']));
  }
  return array(
    '#type' => 'ajax',
    '#commands' => $commands,
  );
}