You are here

function dfp_token_info in Doubleclick for Publishers (DFP) 7.2

Same name and namespace in other branches
  1. 8 dfp.tokens.inc \dfp_token_info()
  2. 7 dfp.module \dfp_token_info()

Implements hook_token_info().

File

./dfp.module, line 295

Code

function dfp_token_info() {
  $type = array(
    'name' => t('DFP Ad Tags'),
    'description' => t('Tokens related to a given DFP ad tag.'),
    'needs-data' => 'tag',
  );
  $tag['slot'] = array(
    'name' => t('Slot Name'),
    'description' => t("The name of the ad slot defined by this tag."),
  );
  $tag['network_id'] = array(
    'name' => t("Network ID"),
    'description' => t("The unique ID provided by Google."),
  );
  $tag['ad_categories'] = array(
    'name' => t("DFP Ad Categories"),
    'description' => t("The DFP Ad Categories or uncategorized taxonomy terms attached to the entities currently being displayed to the user."),
  );
  $tag['url_parts'] = array(
    'name' => t("URL Parts (n)"),
    'description' => t('**Deprecated. See <a href="http://drupal.org/node/1812372" target="_blank">this issue<a> for alternitives.'),
  );
  return array(
    'types' => array(
      'dfp_tag' => $type,
    ),
    'tokens' => array(
      'dfp_tag' => $tag,
    ),
  );
}