publish_button.install 346 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * @file
  4. * Uninstall task
  5. */
  6. /**
  7. * Implements hook_uninstall().
  8. *
  9. * Remove all the variables that are used.
  10. */
  11. function publish_button_uninstall() {
  12. $variables = db_query("SELECT name FROM {variable} WHERE name LIKE 'publish_button_%'");
  13. foreach ($variables as $variable_name) {
  14. variable_del($variable_name->name);
  15. }
  16. }