diff --git a/feeds.module b/feeds.module index db99305d2db615b70ff9cd0ec1dfefdf3df8767d..9238b6fe1bcd715c972e32007ce1dcaadfba83d4 100644 --- a/feeds.module +++ b/feeds.module @@ -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(). */ @@ -505,7 +478,7 @@ function feeds_taxonomy_term_update($term) { * Implements hook_taxonomy_term_insert(). */ function feeds_taxonomy_term_insert($term) { - if ($term->feeds_importer_id) { + if (isset($term->feeds_importer_id)) { $record = array( 'id' => $term->feeds_importer_id, 'tid' => $term->tid,