function _webform_edit_esign in E-Sign 7
Implements _webform_edit_component().
File
- esign_webform/
esign_webform.module, line 62 - Defines all hooks and functions to manage the e-sign field for webforms.
Code
function _webform_edit_esign($component) {
$form = array();
$form['value'] = array(
'#type' => 'textfield',
'#title' => t('Default Signer Title'),
'#default_value' => $component['value'],
'#description' => t('The default "title" of the signer.'),
'#maxlength' => 255,
);
$form['extra']['hide_name'] = array(
'#type' => 'checkbox',
'#title' => 'Hide Signer Name',
'#default_value' => $component['extra']['hide_name'],
'#description' => t('Hide the Signer Name field that is normally below the signature box.'),
);
$form['extra']['hide_title'] = array(
'#type' => 'checkbox',
'#title' => 'Hide Signer Title',
'#default_value' => $component['extra']['hide_title'],
'#description' => t('Hide the Signer Title field that is normally below the signature box.'),
);
return $form;
}