You are here

function notifications_content_token_info in Notifications 7

Implements hook_token_info().

File

notifications_content/notifications_content.module, line 462
Subscriptions to content events

Code

function notifications_content_token_info() {
  $types['node_type'] = array(
    'name' => t('Content type'),
    'description' => t('The type of the node.'),
    'needs-data' => 'node_type',
  );
  $tokens['node_type']['name'] = array(
    'name' => t('Name'),
    'description' => t('The name of the content type.'),
  );
  return array(
    'types' => $types,
    'tokens' => $tokens,
  );
}