function rrssb_uninstall in Ridiculously Responsive Social Sharing Buttons 7.2
Same name and namespace in other branches
- 8.2 rrssb.install \rrssb_uninstall()
- 7 rrssb.install \rrssb_uninstall()
Implements hook_uninstall().
File
- ./
rrssb.install, line 18 - Contains install and update functions.
Code
function rrssb_uninstall() {
// Remove auto-generated files.
file_unmanaged_delete_recursive('public://rrssb');
// Simple DB query to get the names of our variables.
$results = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', 'rrssb_%', 'LIKE')
->execute();
// Loop through and delete each of our variables.
foreach ($results as $result) {
variable_del($result->name);
}
}