You are here

function christmas_lights_install in Christmas Lights 7

Same name and namespace in other branches
  1. 8 christmas_lights.install \christmas_lights_install()

Implements hook_install().

File

./christmas_lights.install, line 11
Install, update and uninstall functions for the Christmas Lights module.

Code

function christmas_lights_install() {
  $settings = array(
    'enabled' => 0,
    'start' => mktime(0, 0, 0, 12, 1, date('Y', REQUEST_TIME)),
    'end' => mktime(0, 0, 0, 1, 15, date('Y', REQUEST_TIME) + 1),
  );
  variable_set('christmas_lights_settings', $settings);
}