Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Implementation of hook_enable().
- *
- * Insert course as product and add admin theme to course settings.
- */
- 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);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement