/** * Print standard form elements on module setup forms in mod/.../mod_form.php */ function print_standard_coursemodule_settings($form, $features = null) { global $DB; if (!($course = $DB->get_record('course', array('id' => $form->course)))) { print_error("invalidcourseid"); } print_groupmode_setting($form, $course); if (!empty($features->groupings)) { print_grouping_settings($form, $course); } print_visible_setting($form, $course); }
/** * Print standard form elements on module setup forms in mod/.../mod.html */ function print_standard_coursemodule_settings($form, $features = null) { if (!($course = get_record('course', 'id', $form->course))) { error("This course doesn't exist"); } print_groupmode_setting($form, $course); if (!empty($features->groupings)) { print_grouping_settings($form, $course); } print_visible_setting($form, $course); }
/** * Print standard form elements on module setup forms in mod/.../mod.html */ function print_standard_coursemodule_settings($form) { if (!($course = get_record('course', 'id', $form->course))) { error("This course doesn't exist"); } print_groupmode_setting($form, $course); print_visible_setting($form, $course); }