Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. /**
  2. * Implementation of hook_enable().
  3. *
  4. * Insert course as product and add admin theme to course settings.
  5. */
  6. function course_enable() {
  7. // Add course settings to admin theme.
  8. $paths = variable_get('admin_theme_path', '');
  9. if (strpos($paths, 'coursesettings') === FALSE) {
  10. $paths .= "\n*/coursesettings";
  11. variable_set('admin_theme_path', $paths);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement