function certificate_form_alter in Certificate 6
Same name and namespace in other branches
- 8.3 certificate.module \certificate_form_alter()
- 6.2 certificate.module \certificate_form_alter()
- 7.3 certificate.module \certificate_form_alter()
- 7.2 certificate.module \certificate_form_alter()
- 3.x certificate.module \certificate_form_alter()
Implements hook_form_alter for course nodes.
File
- ./
certificate.module, line 490 - Certificate module.
Code
function certificate_form_alter(&$form, &$form_state, $form_id) {
$type = basename($form_id, '_node_form');
if (certificate_node_is_certifiable($form['#node']) && strpos($form_id, '_node_form') !== FALSE) {
// Add per-node certificate settings.
module_load_include('inc', 'certificate', 'certificate.admin');
certificate_alter_node_form($form, $form_state);
}
}