function course_forms in Course 7
Same name and namespace in other branches
- 7.2 course.module \course_forms()
Implements hook_forms().
File
- ./
course.module, line 3063 - course.module Core functionality for Courses.
Code
function course_forms($form_id, $args) {
$info = entity_get_info('course_enrollment');
$forms = array();
// Translate bundle form ids to the base form id 'course_enrollment_form'.
foreach ($info['bundles'] as $bundle => $bundle_info) {
$forms['course_enrollment_edit_' . $bundle . '_form']['callback'] = 'course_enrollment_form';
$forms['course_enrollment_edit_' . $bundle . '_form']['wrapper callback'] = 'entity_ui_form_defaults';
}
return $forms;
}