From e49c8cdd57f9b394d030cee1b02a7ac8e4fe9c56 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Fri, 17 Sep 2010 21:30:49 +0000 Subject: [PATCH] Remove hook_taxonomy(), add an isset(). --- feeds.module | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/feeds.module b/feeds.module index db99305d..9238b6fe 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, -- GitLab