You are here

function cpn_unalter_block in Code per Node 7

Drops CPN fields from block table, as defined in cpn_schema_alter().

1 call to cpn_unalter_block()
cpn_uninstall in ./cpn.install
Implements hook_uninstall().

File

./cpn.install, line 267
Installation, schema and update hook implementations.

Code

function cpn_unalter_block() {
  $schema = array();
  cpn_schema_alter($schema);
  foreach ($schema['block']['fields'] as $name => $spec) {
    if (db_field_exists('block', $name)) {
      db_drop_field('block', $name);
    }
  }
}