function webform2pdf_token_info_alter in Webform2PDF 7.4
Implements hook_token_info_alter().
File
- ./
webform2pdf.tokens.inc, line 11 - Builds placeholder replacement tokens for webform-related data.
Code
function webform2pdf_token_info_alter(&$info) {
$help = t('Replace the "?" with the "option field key", including any parent field keys separated by colons. You may append ":label" for just the label or ":withlabel" for both the label and value together.');
$info['tokens']['submission']['nl'] = array(
'name' => t('Webform submission options write new line'),
'description' => t('Modifier outputs all of the selected options: one below the other.') . ' ' . $help,
'dynamic' => TRUE,
);
$info['tokens']['submission']['all'] = array(
'name' => t('Webform submission all options'),
'description' => t('Lists every option, and highlights which were selected from them.') . ' ' . $help,
'dynamic' => TRUE,
);
$info['tokens']['submission']['all-nl'] = array(
'name' => t('Webform submission all options new line'),
'description' => t('Lists all of the options in separate lines, and highlights selected ones.') . ' ' . $help,
'dynamic' => TRUE,
);
return $info;
}