session_limit.install 484 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * @file
  4. * Contains install and update functions for Session Limit.
  5. */
  6. /**
  7. * Implements hook_uninstall().
  8. */
  9. function session_limit_uninstall() {
  10. variable_del('session_limit_max');
  11. variable_del('session_limit_behaviour');
  12. variable_del('session_limit_masquerade_ignore');
  13. variable_del('session_limit_logged_out_message_severity');
  14. variable_del('session_limit_logged_out_message');
  15. db_query("DELETE FROM {variable} WHERE name LIKE 'session_limit_rid_%'");
  16. }