function pmissue_token_list in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmissue/pmissue.module \pmissue_token_list()
- 7.2 pmissue/pmissue.module \pmissue_token_list()
Implements hook_token_list().
File
- pmissue/
pmissue.module, line 120 - 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;
}