You are here

function course_signup_install in Course 6

Same name and namespace in other branches
  1. 7.2 modules/course_signup/course_signup.install \course_signup_install()
  2. 7 modules/course_signup/course_signup.install \course_signup_install()

Implements hook_install().

Set courses to use signup.

File

modules/course_signup/course_signup.install, line 13
Install, update and uninstall functions for the course_signup module.

Code

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');
  }
}