function rrssb_uninstall in Ridiculously Responsive Social Sharing Buttons 7
Same name and namespace in other branches
- 8.2 rrssb.install \rrssb_uninstall()
- 7.2 rrssb.install \rrssb_uninstall()
Implements hook_uninstall().
File
- ./
rrssb.install, line 11 - Contains install and update functions.
Code
function rrssb_uninstall() {
// 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);
}
}