function data_taxonomy_data_insert in Data 6
Implementation of hook_data_insert().
File
- data_taxonomy/
data_taxonomy.module, line 79 - Hooks and API functions for Data Node module.
Code
function data_taxonomy_data_insert($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])) {
_data_taxonomy_save_terms($table_name, $id, $record['data_taxonomy:' . $vid], data_taxonomy_get_vocabulary($vid));
}
}
}
}