function mobile_switch_block_uninstall in Mobile Switch Block 7
Same name and namespace in other branches
- 6 mobile_switch_block.install \mobile_switch_block_uninstall()
- 7.2 mobile_switch_block.install \mobile_switch_block_uninstall()
Implements hook_uninstall().
File
- ./
mobile_switch_block.install, line 45 - Install, update and uninstall functions for the Mobile Switch Block module.
Code
function mobile_switch_block_uninstall() {
$results = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', '%mobile_switch_block%', 'LIKE')
->execute()
->fetchAll();
foreach ($results as $result) {
variable_del($result->name);
}
}