function certificate_field_attach_form in Certificate 8.3
Same name and namespace in other branches
- 7.3 certificate.module \certificate_field_attach_form()
- 7.2 certificate.module \certificate_field_attach_form()
- 3.x certificate.module \certificate_field_attach_form()
Implements hook_field_attach_form().
File
- ./
certificate.module, line 292 - Certificate module.
Code
function certificate_field_attach_form($entity_type, $entity, &$form, &$form_state, $langcode) {
if ($entity_type == 'node' && certificate_node_is_certifiable($entity)) {
// Add per-node certificate settings.
module_load_include('inc', 'certificate', 'certificate.admin');
certificate_alter_node_form($form, $form_state);
}
}