You are here

function clock_uninstall in Clock 6

Same name and namespace in other branches
  1. 7 clock.install \clock_uninstall()

Implements hook_uninstall().

File

./clock.install, line 11
Install, update and uninstall functions for the clock module.

Code

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