fix_course_sortorder();
// Test for and remove blocks which aren't appropriate anymore
- $page = page_create_object(PAGE_COURSE_VIEW, $course->id);
- blocks_remove_inappropriate($page);
+ blocks_remove_inappropriate($course);
// Save any custom role names.
save_local_role_names($course->id, $data);
* but which should not be there according to blocks_name_allowed_in_format.
*
* @todo Write/Fix this function. Currently returns immediatly
- * @param $page a page object.
+ * @param $course
*/
-function blocks_remove_inappropriate($page) {
+function blocks_remove_inappropriate($course) {
// TODO
return;
$blockmanager = blocks_get_by_page($page);