function merci_taxonomy_json in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2
Same name and namespace in other branches
- 6 merci.module \merci_taxonomy_json()
- 7.2 includes/menu.inc \merci_taxonomy_json()
@todo Please document this function.
See also
1 string reference to 'merci_taxonomy_json'
- merci_menu in ./
merci.module - Implementation of hook_menu().
File
- includes/
menu.inc, line 19
Code
function merci_taxonomy_json($node, $vid, $did) {
merci_taxonomy_node_delete_vocabulary($node, $vid);
$tids = $_POST['merci_reservation_items'] ? $_POST['merci_reservation_items'][$did]['accessories']['choices'][$vid] : $_POST[$did]['accessories']['choices'][$vid];
merci_taxonomy_node_save_terms($node, $tids);
merci_ahah_output('', TRUE);
}