You are here

function google_calendar_block_uninstall in Google Calendar Block 7

Same name and namespace in other branches
  1. 7.2 google_calendar_block.install \google_calendar_block_uninstall()

Implements hook_uninstall().

File

./google_calendar_block.install, line 94
Install, update and uninstall functions for the google_calendar_block module.

Code

function google_calendar_block_uninstall() {

  // Remove blocks
  db_delete('block')
    ->condition('module', 'google_calendar_block')
    ->execute();

  // Remove block roles.
  db_delete('block_role')
    ->condition('module', 'google_calendar_block')
    ->execute();

  // Clear the site cache.
  cache_clear_all();
}