You are here

function pmissue_token_list in Drupal PM (Project Management) 8

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

Implements hook_token_list().

File

pmissue/pmissue.module, line 108
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;
}