function certificate_alter_node_form in Certificate 6.2
Same name and namespace in other branches
- 8.3 certificate.admin.inc \certificate_alter_node_form()
- 6 certificate.admin.inc \certificate_alter_node_form()
- 7.3 certificate.admin.inc \certificate_alter_node_form()
- 7.2 certificate.admin.inc \certificate_alter_node_form()
- 3.x certificate.admin.inc \certificate_alter_node_form()
Alters the node form to inject the appropriate per-node template settings.
1 call to certificate_alter_node_form()
- certificate_form_alter in ./
certificate.module - Implements hook_form_alter for course nodes.
File
- ./
certificate.admin.inc, line 100 - Administrative pages for Certificate module.
Code
function certificate_alter_node_form(&$form, &$form_state) {
global $user;
// Add template-mapping form.
// Note, make sure to set #tree to TRUE.
if (user_access('administer certificates')) {
$form['certificate'] = array(
'#type' => 'fieldset',
'#title' => t('Certificate template settings'),
'#weight' => 100,
'#tree' => TRUE,
'#group' => TRUE,
);
certificate_mapping_form($form, $form_state);
}
}