function certificate_snapshot_form in Certificate 7.3
Snapshot preview form.
_state
Parameters
type $form:
type $entity:
Return value
array
File
- ./
certificate.module, line 1036 - Certificate module.
Code
function certificate_snapshot_form($form, &$form_state, $entity = NULL) {
$form['snapshot_title'] = array(
'#type' => 'item',
'#markup' => '<h2>' . $entity
->label() . '</h2>',
);
$form['snapshot_html'] = array(
'#type' => 'item',
'#title' => t('Rendered snapshot'),
'#markup' => isset($entity->snapshot) ? $entity->snapshot : '',
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['cancel'] = array(
'#markup' => l(t('Return'), 'admin/structure/certificates/snapshots'),
);
return $form;
}