function course_enable in Course 6
Implements hook_enable().
Insert course as product and add admin theme to course settings.
File
- ./
course.module, line 1151 - course.module Core functionality for Courses.
Code
function course_enable() {
// Add course settings to admin theme.
$paths = variable_get('admin_theme_path', '');
if (strpos($paths, 'coursesettings') === FALSE) {
$paths .= "\n*/coursesettings";
variable_set('admin_theme_path', $paths);
}
// Flush autoload caches.
autoload_flush_caches();
}