objectDefinition(); $fieldsets = $def->field_sets; $settings = $auth_obj->config_name_value_hash(); if ($auth_obj->id > 0) { $def->populateDefaults( $settings ); } $courseid = $auth_obj->course->get_course_id(); if ( $module_choice = $def->module_choice($courseid) ) { // Historically, these forms have put the module choice under "General Configuration" // This seems wrong, but for now we'll levae it as it is. if (!isset($fieldsets['generalconfiguration'])) { $fieldsets = array_merge(array('generalconfiguration'=>array()), $fieldsets); } array_unshift($fieldsets['generalconfiguration'], $module_choice); } foreach($fieldsets as $fieldsetname => $fieldset) { sloodle_print_box_start('generalbox boxaligncenter'); echo '