function course_update_6132 in Course 6
Same name and namespace in other branches
- 7.2 course.install \course_update_6132()
- 7 course.install \course_update_6132()
Remove old lms settings. Add new course outline display handler settings.
File
- ./
course.install, line 683 - course.install Install and update functions for Courses.
Code
function course_update_6132() {
$ret = array();
// Delete old lms variables.
$types = node_get_types('names');
foreach (array_keys($types) as $type) {
variable_del("default_lms_{$type}");
}
// Migrate old lms column.
db_change_field($ret, 'course_node', 'lms', 'outline', array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
));
return $ret;
}