session_limit.install 535 B

12345678910111213141516171819
  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. variable_del('session_limit_include_root_user');
  16. db_query("DELETE FROM {variable} WHERE name LIKE 'session_limit_rid_%'");
  17. }