function ga_login_test_form in Google Authenticator login 6
1 string reference to 'ga_login_test_form'
- ga_login_menu in ./
ga_login.module - Implementation of hook_menu().
File
- ./
ga_login.module, line 79
Code
function ga_login_test_form() {
$result = db_query("SELECT uid, name FROM {users}");
while ($account = db_fetch_object($result)) {
$options[$account->uid] = check_plain($account->name);
}
$form['uid'] = array(
'#title' => t('User'),
'#type' => 'select',
'#options' => $options,
'#required' => TRUE,
);
$form['code'] = array(
'#title' => t('Code'),
'#type' => 'textfield',
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Check code'),
);
return $form;
}