Mercurial > hg > rr-repo
annotate 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 |
rev | line source |
---|---|
danielebarchiesi@4 | 1 <?php |
danielebarchiesi@4 | 2 |
danielebarchiesi@4 | 3 /** |
danielebarchiesi@4 | 4 * @file |
danielebarchiesi@4 | 5 * Basic authentication login - install file. |
danielebarchiesi@4 | 6 */ |
danielebarchiesi@4 | 7 |
danielebarchiesi@4 | 8 /** |
danielebarchiesi@4 | 9 * Implements hook_uninstall(). |
danielebarchiesi@4 | 10 */ |
danielebarchiesi@4 | 11 function restws_basic_auth_uninstall() { |
danielebarchiesi@4 | 12 variable_del('restws_basic_auth_user_regex'); |
danielebarchiesi@4 | 13 } |
danielebarchiesi@4 | 14 |
danielebarchiesi@4 | 15 /** |
danielebarchiesi@4 | 16 * Set the user name regex to accept all for backwards compatibility. |
danielebarchiesi@4 | 17 */ |
danielebarchiesi@4 | 18 function restws_basic_auth_update_7100() { |
danielebarchiesi@4 | 19 // Set the user name regex to accept all. |
danielebarchiesi@4 | 20 variable_set('restws_basic_auth_user_regex', '/.*/'); |
danielebarchiesi@4 | 21 } |