clock.install in Clock 6
Same filename and directory in other branches
Install, update and uninstall functions for the clock module.
File
clock.installView 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
Name | Description |
---|---|
clock_uninstall | Implements hook_uninstall(). |