You are here

function course_install in Course 8.3

Same name and namespace in other branches
  1. 8.2 course.install \course_install()
  2. 6 course.install \course_install()
  3. 7.2 course.install \course_install()
  4. 7 course.install \course_install()
  5. 3.x course.install \course_install()

Implements hook_install().

Install a default content type, set some defaults.

File

./course.install, line 13
course.install Install and update functions for Courses.

Code

function course_install() {

  // @todo rework flag for d8

  //variable_set('course_use_course', 1);
  user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array(
    'view course',
  ));
}