You are here

function views_send_token_info in Views Send 7

Implements hook_token_info().

These token are used by Rules and not in the Views form.

File

./views_send.tokens.inc, line 13
Token integration for the Views Send module.

Code

function views_send_token_info() {
  $data = array();
  foreach (_views_send_email_message_property_info() as $key => $info) {
    $data[$key] = array(
      'name' => $info['label'],
      'description' => '',
    );
  }
  $type = array(
    'name' => t('Views Send e-mail message'),
    'description' => t('Tokens for Views Send e-mail message.'),
    'needs-data' => 'views_send_email_message',
  );
  return array(
    'types' => array(
      'views_send_email_message' => $type,
    ),
    'tokens' => array(
      'views_send_email_message' => $data,
    ),
  );
}