view 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 source
<?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', '/.*/');
}