Skip to content
Snippets Groups Projects
Commit e49c8cdd authored by Alex Barth's avatar Alex Barth
Browse files

Remove hook_taxonomy(), add an isset().

parent 59a81b7e
No related branches found
No related tags found
No related merge requests found
...@@ -463,33 +463,6 @@ function _feeds_node_processor_node_delete($node) { ...@@ -463,33 +463,6 @@ function _feeds_node_processor_node_delete($node) {
} }
} }
/**
* Implements hook_taxonomy().
*/
function feeds_taxonomy($op = NULL, $type = NULL, $term = NULL) {
if ($type =='term' && $term['tid']) {
switch ($op) {
case 'delete':
db_delete('feeds_term_item')
->condition('tid', $term['tid'])
->execute();
break;
case 'update':
if (isset($term['importer_id'])) {
db_delete('feeds_term_item')
->condition('tid', $term['tid'])
->execute();
}
case 'insert':
if (isset($term['importer_id'])) {
$term['id'] = $term['importer_id'];
drupal_write_record('feeds_term_item', $term);
}
break;
}
}
}
/** /**
* Implements hook_taxonomy_term_update(). * Implements hook_taxonomy_term_update().
*/ */
...@@ -505,7 +478,7 @@ function feeds_taxonomy_term_update($term) { ...@@ -505,7 +478,7 @@ function feeds_taxonomy_term_update($term) {
* Implements hook_taxonomy_term_insert(). * Implements hook_taxonomy_term_insert().
*/ */
function feeds_taxonomy_term_insert($term) { function feeds_taxonomy_term_insert($term) {
if ($term->feeds_importer_id) { if (isset($term->feeds_importer_id)) {
$record = array( $record = array(
'id' => $term->feeds_importer_id, 'id' => $term->feeds_importer_id,
'tid' => $term->tid, 'tid' => $term->tid,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment