function system_site_information_settings in Drupal 5
Same name and namespace in other branches
- 6 modules/system/system.admin.inc \system_site_information_settings()
- 7 modules/system/system.admin.inc \system_site_information_settings()
1 string reference to 'system_site_information_settings'
- system_menu in modules/
system/ system.module - Implementation of hook_menu().
File
- modules/
system/ system.module, line 537 - Configuration system that lets administrators modify the workings of the site.
Code
function system_site_information_settings() {
$form['site_name'] = array(
'#type' => 'textfield',
'#title' => t('Name'),
'#default_value' => variable_get('site_name', 'Drupal'),
'#description' => t('The name of this web site.'),
'#required' => TRUE,
);
$form['site_mail'] = array(
'#type' => 'textfield',
'#title' => t('E-mail address'),
'#default_value' => variable_get('site_mail', ini_get('sendmail_from')),
'#description' => t('A valid e-mail address to be used as the "From" address by the auto-mailer during registration, new password requests, notifications, etc. To lessen the likelihood of e-mail being marked as spam, this e-mail address should use the same domain as the website.'),
'#required' => TRUE,
);
$form['site_slogan'] = array(
'#type' => 'textfield',
'#title' => t('Slogan'),
'#default_value' => variable_get('site_slogan', ''),
'#description' => t('The slogan of this website. Some themes display a slogan when available.'),
);
$form['site_mission'] = array(
'#type' => 'textarea',
'#title' => t('Mission'),
'#default_value' => variable_get('site_mission', ''),
'#description' => t('Your site\'s mission statement or focus.'),
);
$form['site_footer'] = array(
'#type' => 'textarea',
'#title' => t('Footer message'),
'#default_value' => variable_get('site_footer', ''),
'#description' => t('This text will be displayed at the bottom of each page. Useful for adding a copyright notice to your pages.'),
);
$form['anonymous'] = array(
'#type' => 'textfield',
'#title' => t('Anonymous user'),
'#default_value' => variable_get('anonymous', t('Anonymous')),
'#description' => t('The name used to indicate anonymous users.'),
);
$form['site_frontpage'] = array(
'#type' => 'textfield',
'#title' => t('Default front page'),
'#default_value' => variable_get('site_frontpage', 'node'),
'#size' => 40,
'#description' => t('The home page displays content from this relative URL. If unsure, specify "node".'),
'#field_prefix' => url(NULL, NULL, NULL, TRUE) . (variable_get('clean_url', 0) ? '' : '?q='),
);
return system_settings_form($form);
}