function publish_button_uninstall in Publish button 7
Implements hook_uninstall().
Remove all the variables that are used.
File
- ./
publish_button.install, line 12 - Uninstall task
Code
function publish_button_uninstall() {
$variables = db_query("SELECT name FROM {variable} WHERE name LIKE 'publish_button_%'");
foreach ($variables as $variable_name) {
variable_del($variable_name->name);
}
}