You are here

function classified_token_info in Classified Ads 7.3

Implements hook_token_info().

Core version of D6 hook_token_list($type = 'all')

File

./classified.tokens.inc, line 33
Token hooks for Classified Ads module.

Code

function classified_token_info() {
  $ret = array();
  $ret['types'] = array();
  $ret['tokens'] = array(
    'user' => array(
      'classified-ads' => array(
        'name' => t('Classified Ads list'),
        'description' => t('A themed list of Classified Ads by the user (max 10)'),
      ),
      'classified-ads-plain' => array(
        'name' => t('Classified Ads list'),
        'description' => t('A plain text list of Classified Ads by the user (max 10). Best for email.'),
      ),
      'classified-ads-url' => array(
        'name' => t('Classified Ads URL'),
        'description' => t("The URL of a user's ads list"),
        'type' => 'url',
      ),
    ),
  );
  return $ret;
}