function services_security_form_confirm in Services 7.3
1 string reference to 'services_security_form_confirm'
File
- ./
services.admin.inc, line 115
Code
function services_security_form_confirm($form, &$form_state) {
$values = array();
if (!empty($form_state['storage'])) {
$values = $form_state['storage'];
}
switch ($values['security_options']) {
case 0:
$markup = 'All user account created since August 30th, 2013 will have their password invalidated, this cannot be undone.';
break;
case 1:
$markup = 'All user account which still have their password set to "1" will have their password invalidated, this cannot be undone.';
break;
case 2:
$markup = 'Do nothing.';
break;
}
$form['markup'] = array(
'#markup' => $markup . '<br>',
);
$form['back'] = array(
'#type' => 'submit',
'#value' => t('Back'),
'#limit_validation_errors' => array(),
'#submit' => array(
'services_security_form_confirm_submit',
),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Confirm'),
);
return $form;
}