function webform2pdf_handler_field_submission_download_pdf::options_form in Webform2PDF 7.4
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- views/
webform2pdf_handler_field_submission_download_pdf.inc, line 36 - Views handler to download pdf link to a submission.
Class
- webform2pdf_handler_field_submission_download_pdf
- Field handler to present a download pdf link to the user.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['text'] = array(
'#type' => 'textfield',
'#title' => t('Text to display'),
'#default_value' => $this->options['text'],
'#description' => t('The token [serial] will be replaced with the serial number and draft indication.'),
);
$form['access_check'] = array(
'#type' => 'checkbox',
'#title' => t('Verify submission access for each link'),
'#default_value' => $this->options['access_check'],
);
}