extlink.install 409 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * Implementation of 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. * Implementation of hook_uninstall().
  11. */
  12. function extlink_uninstall() {
  13. db_query("DELETE FROM {variable} WHERE name LIKE 'extlink_%'");
  14. cache()->deleteTags(array('variables' => TRUE));
  15. }