You are here

function esi_block_uninstall in ESI: Edge Side Includes 7.3

Implements hook_uninstall().

File

modules/esi_block/esi_block.install, line 58
Install/Uninstall/Schema hooks for ESI Block.

Code

function esi_block_uninstall() {

  // Remove the columns that were added to the 'block' table in hook_install().
  $schema = esi_block_schema_alter();
  foreach ($schema['block']['fields'] as $field_name => $spec) {
    db_drop_field('block', $field_name);
  }

  // Remove obsolete variables.
  variable_del('esi_block_default_ttl');
}