function token_rules_input_evaluator_help in Token 6
Some token replacement help for the condition/action edit form.
File
- ./
token.rules.inc, line 101 - Rules integration for the token module.
Code
function token_rules_input_evaluator_help($variables) {
$variables[':global'] = array(
'type' => 'global',
'label' => t('global token'),
);
foreach ($variables as $name => $info) {
$type = _token_rules_map_type($info['type']);
if ($type) {
$form[$name] = array(
'#type' => 'fieldset',
'#title' => t('Replacement patterns for @name', array(
'@name' => $info['label'],
)),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form[$name]['content'] = array(
'#value' => theme('token_help', $type, TOKEN_PREFIX . $name . ':', TOKEN_SUFFIX),
);
}
}
return $form;
}