function systeminfo_admin_php_settings in System Information 6.3
Same name and namespace in other branches
- 7.3 systeminfo.admin.php.inc \systeminfo_admin_php_settings()
Menu callback; configures the display.
1 string reference to 'systeminfo_admin_php_settings'
- systeminfo_menu in ./
systeminfo.module - Implementation of hook_menu().
File
- ./
systeminfo.admin.php.inc, line 44 - Admin PHP page callbacks for the systeminfo module.
Code
function systeminfo_admin_php_settings() {
$form = array();
$form['systeminfo_php_phpinfo_parameter'] = array(
'#type' => 'radios',
'#title' => t('PHPinfo'),
'#description' => t('Outputs a large amount of information about the current state of PHP.'),
'#default_value' => variable_get('systeminfo_php_phpinfo_parameter', INFO_ALL),
'#options' => array(
INFO_GENERAL => t('The configuration line, php.ini location, build date, Web Server, System and more.'),
INFO_CONFIGURATION => t('Current Local and Master values for PHP directives.'),
INFO_MODULES => t('Loaded modules and their respective settings.'),
INFO_ENVIRONMENT => t("Environment Variable information that's also available in \$_ENV."),
INFO_VARIABLES => t('Shows all predefined variables from EGPCS (Environment, GET, POST, Cookie, Server).'),
INFO_ALL => t('Shows all of the above.'),
),
);
// Buttons
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
);
$form['actions']['cancel'] = array(
'#value' => l(t('Cancel'), 'admin/reports/systeminfo/php'),
);
$form['#submit'][] = 'system_settings_form_submit';
$form['#theme'] = 'system_settings_form';
if (!empty($_POST) && form_get_errors()) {
drupal_set_message(t('The settings have not been saved because of the errors.'), 'error');
}
return $form;
}