You are here

function apply_for_role_token_list in Apply for role 5

Same name and namespace in other branches
  1. 6 apply_for_role.token.inc \apply_for_role_token_list()

Implementation of hook_token_list().

File

./apply_for_role.module, line 797
Allows users to apply for roles.

Code

function apply_for_role_token_list($type = 'all') {
  if ($type == 'apply_for_role' || $type == 'all') {
    $tokens['apply_for_role']['apply_for_role-uid'] = t("Applicant's user ID");
    $tokens['apply_for_role']['apply_for_role-name'] = t("Applicant's user name");
    $tokens['apply_for_role']['apply_for_role-name-raw'] = t("Applicant's user name. WARNING - raw user input.");
    $tokens['apply_for_role']['apply_for_role-mail'] = t("Applicant's e-mail.");
    $tokens['apply_for_role']['apply_for_role-mail-raw'] = t("Applicant's e-mail. WARNING - raw user input.");
    $tokens['apply_for_role']['apply_for_role-rid'] = t('Application role ID');
    $tokens['apply_for_role']['apply_for_role-role'] = t('Application role name');
    $tokens['apply_for_role']['apply_for_role-status'] = t('Application status');
    $tokens['apply_for_role']['apply_for_role-apply_date-yyyy'] = t("Application creation year (four digit)");
    $tokens['apply_for_role']['apply_for_role-apply_date-yy'] = t("Application creation year (two digit)");
    $tokens['apply_for_role']['apply_for_role-apply_date-month'] = t("Application creation month (full word)");
    $tokens['apply_for_role']['apply_for_role-apply_date-mon'] = t("Application creation month (abbreviated)");
    $tokens['apply_for_role']['apply_for_role-apply_date-mm'] = t("Application creation month (two digit, zero padded)");
    $tokens['apply_for_role']['apply_for_role-apply_date-m'] = t("Application creation month (one or two digit)");
    $tokens['apply_for_role']['apply_for_role-apply_date-ww'] = t("Application creation week (two digit)");
    $tokens['apply_for_role']['apply_for_role-apply_date-date'] = t("Application creation date (day of month)");
    $tokens['apply_for_role']['apply_for_role-apply_date-day'] = t("Application creation day (full word)");
    $tokens['apply_for_role']['apply_for_role-apply_date-ddd'] = t("Application creation day (abbreviation)");
    $tokens['apply_for_role']['apply_for_role-apply_date-dd'] = t("Application creation day (two digit, zero-padded)");
    $tokens['apply_for_role']['apply_for_role-apply_date-d'] = t("Application creation day (one or two digit)");
    return $tokens;
  }
}