function block_token_uninstall in Block Token 7
Implements hook_uninstall().
File
- ./
block_token.install, line 27 - Install, update and uninstall functions for the block_token module.
Code
function block_token_uninstall() {
$schema['block'] = array();
block_token_schema_alter($schema);
foreach ($schema['block']['fields'] as $field => $specs) {
if (db_field_exists('block', $field)) {
db_drop_field('block', $field);
}
else {
watchdog('system', 'Module uninstall: Attempt to drop field: "%field", when it does not exists.', array(
'%field' => $field,
), WATCHDOG_WARNING);
}
}
}