You are here

function block_attributes_uninstall in Block Attributes 7

Implements hook_uninstall().

File

./block_attributes.install, line 27
Install, update and uninstall functions for the block_attributes module.

Code

function block_attributes_uninstall() {
  $schema['block'] = array();
  block_attributes_schema_alter($schema);

  // Remove any database field added by the module.
  foreach ($schema['block']['fields'] as $field => $specs) {
    db_drop_field('block', $field);
  }

  // Remove all the configuration variables added by the module.
  db_delete('variable')
    ->condition('name', 'block_attributes_%', 'LIKE')
    ->execute();
}