You are here

function pmticket_token_list in Drupal PM (Project Management) 7.2

Same name and namespace in other branches
  1. 8 pmticket/pmticket.module \pmticket_token_list()
  2. 7.3 pmticket/pmticket.module \pmticket_token_list()
  3. 7 pmticket/pmticket.module \pmticket_token_list()

Implements hook_token_list().

File

pmticket/pmticket.module, line 88
Main module file for the PM Ticket module.

Code

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