course_signup.install in Course 6
Same filename and directory in other branches
Install, update and uninstall functions for the course_signup module.
File
modules/course_signup/course_signup.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the course_signup module.
*
*/
/**
* Implements hook_install().
*
* Set courses to use signup.
*/
function course_signup_install() {
module_load_include('module', 'course', 'course');
foreach (course_get_types() as $type) {
variable_set('signup_node_default_state_' . $type, 'enabled_on');
}
}
Functions
Name | Description |
---|---|
course_signup_install | Implements hook_install(). |