You are here

function course_certificate_token_list in Course 6

Implements hook_token_list().

File

modules/course_certificate/course_certificate.module, line 48

Code

function course_certificate_token_list($type = 'all') {
  if ($type == 'certificate') {
    $tokens = array();
    $tokens['certificate']["certificate-date_completed"] = t('Date of course completion');
    $tokens['certificate']['certificate-number'] = 'Generated certificate number';
    return $tokens;
  }
}