function draggableviews_handler_taxonomy::save in DraggableViews 6.3
Overrides draggableviews_handler::save
File
- modules/
draggableviews_taxonomy/ draggableviews_handler_taxonomy.inc, line 16 - The taxonomy handler.
Class
Code
function save($tid, $value) {
switch ($this->type) {
case 'order':
db_query("UPDATE {term_data} SET weight=%d WHERE tid=%d", $value, $tid);
break;
case 'hierarchy':
db_query("UPDATE {term_hierarchy} SET parent=%d WHERE tid=%d", $value, $tid);
break;
}
}