function simpletest_settings in SimpleTest 5
Same name and namespace in other branches
- 6 simpletest.module \simpletest_settings()
1 string reference to 'simpletest_settings'
- simpletest_menu in ./
simpletest.module - Implementation of hook_menu().
File
- ./
simpletest.module, line 273
Code
function simpletest_settings() {
$from = array();
$form['http_auth'] = array(
'#type' => 'fieldset',
'#title' => t('HTTP authentication'),
'#description' => t('If needed, enter a username and password for reaching your web site. This is not a drupal username/password. This
is a login presented by your web server. Most sites may leave section empty.'),
);
$form['http_auth']['simpletest_httpauth'] = array(
'#type' => 'checkbox',
'#title' => t('Use http authentication'),
'#default_value' => variable_get('simpletest_httpauth', false),
);
$form['http_auth']['simpletest_httpauth_username'] = array(
'#type' => 'textfield',
'#title' => t('Username'),
'#default_value' => variable_get('simpletest_httpauth_username', ''),
);
$form['http_auth']['simpletest_httpauth_pass'] = array(
'#title' => t('Password'),
'#type' => 'password',
'#default_value' => variable_get('simpletest_httpauth_pass', ''),
);
$form['devel'] = array(
'#type' => 'fieldset',
'#title' => t('Devel module settings'),
'#description' => t('Devel module can cause problems if you have query log enabled. It will output a few thousand queries and crash your browser'),
);
$form['devel']['simpletest_devel'] = array(
'#type' => 'checkbox',
'#title' => t('Use devel query log on test result pages'),
'#default_value' => variable_get('simpletest_devel', false),
);
return system_settings_form($form);
}