You are here

function feeds_token_info in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.tokens.inc \feeds_token_info()

Implements hook_token_info().

File

./feeds.tokens.inc, line 11
Builds placeholder replacement tokens for feed-related data.

Code

function feeds_token_info() {

  // @todo This token could be for any entity type.
  $info['tokens']['node']['feed-source'] = array(
    'name' => t('Feed source'),
    'description' => t('The node the feed item was sourced from.'),
    'type' => 'node',
  );
  return $info;
}