You are here

restws_basic_auth.install in RESTful Web Services 7

Same filename and directory in other branches
  1. 7.2 restws_basic_auth/restws_basic_auth.install

Basic authentication login - install file.

File

restws_basic_auth/restws_basic_auth.install
View 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', '/.*/');
}

Functions

Namesort descending Description
restws_basic_auth_uninstall Implements hook_uninstall().
restws_basic_auth_update_7100 Set the user name regex to accept all for backwards compatibility.