function stickynav_uninstall in Sticky Navigation 7
Same name and namespace in other branches
- 6 stickynav.install \stickynav_uninstall()
Implements hook_uninstall().
File
- ./
stickynav.install, line 10 - Contains install and update functions for advanced_help.
Code
function stickynav_uninstall() {
$or = db_or()
->condition('name', 'stickynav-enabled-%', 'LIKE')
->condition('name', 'stickynav-selector-%', 'LIKE')
->condition('name', 'stickynav-roles-%', 'LIKE');
$result = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition($or)
->execute();
foreach ($result as $row) {
variable_del($row->name);
}
}