You are here

function _advuser_get_tokens_list in Advanced User 7.3

Same name and namespace in other branches
  1. 6.3 forms/advuser_settings.inc \_advuser_get_tokens_list()

Returns the HTML representation of the available tokens list.

Return value

string The HTML representation of the list of usable tokens and their descriptions, organized by token type.

2 calls to _advuser_get_tokens_list()
advuser_multiple_email_confirm in forms/advuser_multiple_email_confirm.inc
The menu callback function for admin/people/advuser/confirm/email
advuser_settings in forms/advuser_settings.inc
@file

File

forms/advuser_settings.inc, line 261
The admin/settings/advuser form.

Code

function _advuser_get_tokens_list() {
  static $tokens_list = '';
  if (!$tokens_list) {
    $tokens_list = theme('token_tree', array(
      'token_types' => array(
        'user',
        'site',
      ),
      'click_insert' => FALSE,
      'show_restricted' => FALSE,
      'global_types' => FALSE,
    ));
  }
  return $tokens_list;
}