function data_taxonomy_data_update in Data 6
Implementation of hook_data_update().
File
- data_taxonomy/
data_taxonomy.module, line 93 - Hooks and API functions for Data Node module.
Code
function data_taxonomy_data_update($record, $table_name) {
if ($info = data_taxonomy_get_info($table_name)) {
$id = $record[$info['id']];
foreach ($info['vocabularies'] as $vid) {
if (isset($record['data_taxonomy:' . $vid])) {
$vocabulary = data_taxonomy_get_vocabulary($vid);
_data_taxonomy_save_terms($table_name, $id, $record['data_taxonomy:' . $vid], $vocabulary);
}
}
}
}