function _webform_table_esign in E-Sign 7
Return the result of a component value for display in a table.
File
- esign_webform/
esign_webform.module, line 197 - Defines all hooks and functions to manage the e-sign field for webforms.
Code
function _webform_table_esign($component, $value) {
$signature = array();
if (isset($value['esignature']) && $value['esignature']) {
$signature[] = t('Signed');
}
else {
$signature[] = t('Not Signed');
}
if (!empty($value['signer_name'])) {
$signature[] = $value['signer_name'];
}
if (!empty($value['signer_title'])) {
$signature[] = $value['signer_title'];
}
if (!empty($value['created'])) {
$signature[] = date('Y-m-d', $value['created']);
}
$signature = array_filter($signature);
$signature = implode(', ', $signature);
return check_plain($signature);
}