function _signup_build_token_help in Signup 5.2
Same name and namespace in other branches
- 6.2 includes/token_help.inc \_signup_build_token_help()
- 6 includes/token_help.inc \_signup_build_token_help()
- 7 includes/token_help.inc \_signup_build_token_help()
Private function to generate HTML for showing the available tokens
Return value
The themed representation of the available tokens.
1 call to _signup_build_token_help()
- _signup_token_help in ./
signup.module - Private function to generate HTML for showing the available tokens.
File
- ./
signup.module, line 2844 - The Signup module (http://drupal.org/project/signup) manages replies to nodes. In particular, it's good for event management. Signup supports sending reminder emails and automatically closing signups for nodes with a start time, via the Event…
Code
function _signup_build_token_help() {
static $help_html = '';
if (empty($help_html)) {
$patterns = token_get_list('node');
foreach ($patterns as $type => $pattern_set) {
foreach ($pattern_set as $pattern => $description) {
$tokens[$pattern] = $description;
}
}
$help_html = theme('signup_token_help', $tokens);
}
return $help_html;
}