You are here

function advuser_token_list in Advanced User 6.3

Implementation of hook_token_list().

File

./advuser.module, line 870
Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.

Code

function advuser_token_list($type = 'all') {
  if ($type == 'user' || $type == 'all') {
    $tokens = array();
    $tokens['user']['advuser-status'] = t("The !this_module module user's status (either '!active' or '!blocked').", array(
      '!active' => t('Active'),
      '!blocked' => t('Blocked'),
      '!this_module' => t('Advanced User'),
    ));
    $tokens['user']['advuser-theme'] = t("The !this_module module user's theme (or '!default' if not defined).", array(
      '!default' => t('DEFAULT'),
      '!this_module' => t('Advanced User'),
    ));
    $tokens['user']['advuser-created'] = t("The !this_module module user's created date and time.", array(
      '!this_module' => t('Advanced User'),
    ));
    $tokens['user']['advuser-language'] = t("The !this_module module user's language (or '!default' if not defined).", array(
      '!default' => t('DEFAULT'),
      '!this_module' => t('Advanced User'),
    ));
    $tokens['user']['advuser-timezone'] = t("The !this_module module user's timezone (or '0' if not defined).", array(
      '!this_module' => t('Advanced User'),
    ));
    $tokens['user']['advuser-signature'] = t("The !this_module module user's signature.", array(
      '!this_module' => t('Advanced User'),
    ));
    $tokens['user']['advuser-signature-raw'] = t("The !this_module module unfiltered user's signature. WARNING - raw user input.", array(
      '!this_module' => t('Advanced User'),
    ));
    return $tokens;
  }
}