You are here

function _taxonomy_feeds_extract_tid in Feeds 7.2

Extracts tid from array item returned by field_get_items().

Parameters

array $item: Tid information in the form of a single element array (key == 'tid', value == tid we're looking for)

Return value

int Term id extracted from $item.

See also

taxonomy_feeds_node_get_terms()

field_get_items()

1 string reference to '_taxonomy_feeds_extract_tid'
taxonomy_feeds_node_get_terms in mappers/taxonomy.inc
Finds all terms associated with the given node, within one vocabulary.

File

mappers/taxonomy.inc, line 257
On behalf implementation of Feeds mapping API for taxonomy.module.

Code

function _taxonomy_feeds_extract_tid($item) {
  return $item['tid'];
}