function webform_rules_token_list in Webform Rules 6
Implementation of hook_token_list().
File
- ./
webform_rules.module, line 172 - Adds rules integration for webform submissions.
Code
function webform_rules_token_list($type) {
if ($type == 'webform' || $type == 'all') {
$list['webform']['sid'] = t('The submission id.');
$list['webform']['data'] = t('The submitted webform data.');
$list['webform']['data-raw'] = t('The unfiltered submitted webform data.');
$list['webform']['{component}-title'] = t('The title of the selected component, e.g. "email-title".');
$list['webform']['{component}-value'] = t('The value of the selected component, e.g. "email-value".');
$list['webform']['{component}-value-html'] = t('The value of the selected component rendered as html, e.g. "email-value-html".');
$list['webform']['{component}-value-raw'] = t('The unfiltered value of the selected component, e.g. "email-value-raw".');
$list['webform']['{component}-display'] = t('Title and value of the selected component, e.g. "email-display".');
$list['webform']['{component}-display-html'] = t('Title and value of the selected component rendered as html, e.g. "email-display-html".');
return $list;
}
}