You are here

function pmissue_token_list in Drupal PM (Project Management) 7.2

Same name and namespace in other branches
  1. 8 pmissue/pmissue.module \pmissue_token_list()
  2. 7.3 pmissue/pmissue.module \pmissue_token_list()

Implements hook_token_list().

File

pmissue/pmissue.module, line 89
Hook implementations for PM Issue.

Code

function pmissue_token_list($type = 'all') {
  $tokens = array();
  if ($type == 'node' || $type == 'all') {
    $tokens['node']['pmissue-organization-nid'] = t('Project Management Issue: Organization Node ID.');
    $tokens['node']['pmissue-organization-title'] = t('Project Management Issue: Organization Title.');
    $tokens['node']['pmissue-project-nid'] = t('Project Management Issue: Project Node ID.');
    $tokens['node']['pmissue-project-title'] = t('Project Management Issue: Project Title.');
  }
  return $tokens;
}