You are here

function twitter_block_uninstall in Twitter Block 7

Same name and namespace in other branches
  1. 6 twitter_block.install \twitter_block_uninstall()
  2. 7.2 twitter_block.install \twitter_block_uninstall()

Implements hook_uninstall().

File

./twitter_block.install, line 72
Install, update and uninstall functions for the twitter_block module.

Code

function twitter_block_uninstall() {

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

  // Clear the site cache
  cache_clear_all();
}