You are here

function forward_token_info in Forward 8

Same name and namespace in other branches
  1. 8.3 forward.tokens.inc \forward_token_info()
  2. 8.2 forward.tokens.inc \forward_token_info()
  3. 7.3 forward.tokens.inc \forward_token_info()
  4. 7.2 forward.module \forward_token_info()
  5. 4.x forward.tokens.inc \forward_token_info()
  6. 4.0.x forward.tokens.inc \forward_token_info()

Implements hook_token_info().

File

./forward.tokens.inc, line 16
forward.tokens.inc Provide tokens related to the forward module

Code

function forward_token_info() {
  $data['types'] = array(
    'forward' => array(
      'name' => t('Forward'),
      'description' => t('Tokens related to forward module.'),
    ),
  );
  $data['tokens'] = array(
    'forward' => array(
      'recipients' => array(
        'name' => t("Email recipient(s)"),
        'description' => t("Recipient email address or email addresses for forwarded content."),
      ),
      'sender-name' => array(
        'name' => t("Sender's name"),
        'description' => t("Name of sender as entered in Forwarding form."),
      ),
      'sender-email' => array(
        'name' => t("Sender's email address"),
        'description' => t("Email address of sender as entered in Forwarding form."),
      ),
      'entity-type' => array(
        'name' => t("Entity type"),
        'description' => t('The type of entity being forwarded. For nodes, uses the bundle name, e.g. "article" or "page", instead of the type.'),
      ),
      'entity-title' => array(
        'name' => t("Entity title"),
        'description' => t('The title of the entity being forwarded.'),
      ),
    ),
  );
  return $data;
}