Mercurial > hg > rr-repo
diff sites/all/modules/restws/restws_basic_auth/restws_basic_auth.install @ 4:ce11bbd8f642
added modules
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Thu, 19 Sep 2013 10:38:44 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sites/all/modules/restws/restws_basic_auth/restws_basic_auth.install Thu Sep 19 10:38:44 2013 +0100 @@ -0,0 +1,21 @@ +<?php + +/** + * @file + * Basic authentication login - install file. + */ + +/** + * Implements hook_uninstall(). + */ +function restws_basic_auth_uninstall() { + variable_del('restws_basic_auth_user_regex'); +} + +/** + * Set the user name regex to accept all for backwards compatibility. + */ +function restws_basic_auth_update_7100() { + // Set the user name regex to accept all. + variable_set('restws_basic_auth_user_regex', '/.*/'); +}