You are here

function http_auth_settings_form_submit in HTTP Auth 7

Submit handler().

File

./http_auth.module, line 120
Enables Drupal to add HTTP Auth from frontend on all over the site/pages.

Code

function http_auth_settings_form_submit($form, &$form_state) {
  $http_auth['username'] = $form_state['values']['username'];
  $http_auth['password'] = $form_state['values']['password'];
  $http_auth['message'] = $form_state['values']['message'];
  $http_auth['applicable'] = $form_state['values']['applicable'];
  $http_auth['activate'] = $form_state['values']['activate'];
  $http_auth_settings = serialize($http_auth);
  variable_set('http_auth', $http_auth_settings);
}