You are here

function ga_stats_auth_form_validate in Google Analytics Statistics 7

Just set the password if we already have one and the form field was ignored.

1 string reference to 'ga_stats_auth_form_validate'
ga_stats_auth_settings in ./ga_stats.admin.inc
Callback for GA Stats authentication form.

File

./ga_stats.admin.inc, line 139

Code

function ga_stats_auth_form_validate($form, &$form_state) {
  if (!$form_state['values']['ga_stats_password']) {
    $form_state['values']['ga_stats_password'] = variable_get('ga_stats_password', '');
  }
}