You are here

course.install in Course 8.3

course.install Install and update functions for Courses.

File

course.install
View source
<?php

/**
 * @file course.install
 * Install and update functions for Courses.
 */

/**
 * Implements hook_install().
 *
 * Install a default content type, set some defaults.
 */
function course_install() {

  // @todo rework flag for d8

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

/**
 * Implements hook_schema().
 *
 * @todo add indexes
 */
function course_schema() {
  $schema = array();
  return $schema;
}

Functions

Namesort descending Description
course_install Implements hook_install().
course_schema Implements hook_schema().