function taxonomy_manager_double_tree_edit in Taxonomy Manager 6.2
AJAX Callback for Double Tree operations
1 string reference to 'taxonomy_manager_double_tree_edit'
- taxonomy_manager_menu in ./
taxonomy_manager.module - Implementation of hook_menu
File
- ./
taxonomy_manager.admin.inc, line 1800 - Taxonomy Manager Admin
Code
function taxonomy_manager_double_tree_edit() {
$params = $_POST;
if (!taxonomy_manager_valid_ajax_callback($params)) {
return;
}
$op = $params['op'];
$msg = "";
$is_error_msg = FALSE;
if ($op == "move") {
taxonomy_manager_double_tree_edit_move($params, $msg, $is_error_msg);
}
else {
if ($op == "translation") {
taxonomy_manager_doube_tree_edit_translate($params, $msg, $is_error_msg);
}
else {
if ($op == "switch") {
taxonomy_manager_double_tree_edit_switch($params, $msg, $is_error_msg);
}
}
}
if ($msg == "") {
$msg = t("Invalid operation.");
$is_error_msg = TRUE;
}
$msg_type = $is_error_msg ? "error" : "status";
drupal_json(array(
'data' => $msg,
'type' => $msg_type,
));
}