extlink.install 558 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Implements hook_install().
  4. */
  5. function extlink_install() {
  6. // Weight needs to be 1 for compatibility with SpamSpan.
  7. db_query("UPDATE {system} SET weight = 1 WHERE name = 'extlink'");
  8. }
  9. /**
  10. * Implements hook_uninstall().
  11. */
  12. function extlink_uninstall() {
  13. db_query("DELETE FROM {variable} WHERE name LIKE 'extlink_%'");
  14. cache_clear_all('variables', 'cache');
  15. }
  16. /**
  17. * Delete "extlink_target_value" variable (now uses "extlink_target" directly).
  18. */
  19. function extlink_update_7101(&$sandbox) {
  20. variable_del('extlink_target_value');
  21. }