You are here

function feeds_taxonomy_term_insert in Feeds 7

Implements hook_taxonomy_term_insert().

Related topics

File

./feeds.module, line 483
Feeds - basic API functions and hook implementations.

Code

function feeds_taxonomy_term_insert($term) {
  if (isset($term->feeds_importer_id)) {
    $record = array(
      'id' => $term->feeds_importer_id,
      'tid' => $term->tid,
      'feed_nid' => $term->feed_nid,
    );
    drupal_write_record('feeds_term_item', $record);
  }
}