You are here

function twitter_block_uninstall in Twitter Block 7.2

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

Implements hook_uninstall().

File

./twitter_block.install, line 63
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();

  // Remove variables.
  variable_del('twitter_block_cache');
  variable_del('twitter_block_last_cache');
}