course.install in Course 8.3
Same filename and directory in other branches
course.install Install and update functions for Courses.
File
course.installView 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
Name | Description |
---|---|
course_install | Implements hook_install(). |
course_schema | Implements hook_schema(). |