function feeds_taxonomy in Feeds 6
Implementation of hook_taxonomy().
Related topics
File
- ./
feeds.module, line 449 - Feeds - basic API functions and hook implementations.
Code
function feeds_taxonomy($op = NULL, $type = NULL, $term = NULL) {
if ($type == 'term' && !empty($term['tid'])) {
switch ($op) {
case 'delete':
db_query("DELETE FROM {feeds_term_item} WHERE tid = %d", $term['tid']);
break;
case 'update':
if (isset($term['feeds_term_item'])) {
db_query("DELETE FROM {feeds_term_item} WHERE tid = %d", $term['tid']);
}
case 'insert':
if (isset($term['feeds_term_item'])) {
$term['feeds_term_item']['tid'] = $term['tid'];
drupal_write_record('feeds_term_item', $term['feeds_term_item']);
}
break;
}
}
}