You are here

course_signup.install in Course 6

Install, update and uninstall functions for the course_signup module.

File

modules/course_signup/course_signup.install
View 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

Namesort descending Description
course_signup_install Implements hook_install().