You are here

clock.install in Clock 6

Same filename and directory in other branches
  1. 7.2 clock.install
  2. 7 clock.install

Install, update and uninstall functions for the clock module.

File

clock.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the clock module.
 */

/**
 * Implements hook_uninstall().
 */
function clock_uninstall() {

  // Delete all clock variables if they are set.
  variable_del('clock_timezone_type');
  variable_del('clock_custom_timezone');
  variable_del('clock_date_format_type');
  variable_del('clock_custom_date_format');
  variable_del('clock_js');

  // Delete the clock block from the blocks table.
  db_query("DELETE FROM {blocks} WHERE module = 'clock'");
}

Functions

Namesort descending Description
clock_uninstall Implements hook_uninstall().