You are here

function _signup_token_help in Signup 5.2

Same name and namespace in other branches
  1. 6.2 includes/token_help.inc \_signup_token_help()
  2. 6 includes/token_help.inc \_signup_token_help()
  3. 7 includes/token_help.inc \_signup_token_help()

Private function to generate HTML for showing the available tokens.

Parameters

$form: Reference to the form array to include the help fieldset in.

$element_name: Name of the form element to use for the help fieldset.

2 calls to _signup_token_help()
signup_broadcast_form in ./signup.module
Form builder for the signup broadcast form.
signup_node_settings_form in ./signup.module
Returns the form for the per-node signup settings.

File

./signup.module, line 2827
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_token_help(&$form, $element_name) {
  $form[$element_name] = array(
    '#type' => 'fieldset',
    '#title' => t('Replacement tokens'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form[$element_name]['help_text'] = array(
    '#value' => _signup_build_token_help(),
  );
}