function system_form_install_configure_form_alter in Open Atrium 6
Alter the install profile configuration form and provide timezone location options.
File
- ./
openatrium.profile, line 377
Code
function system_form_install_configure_form_alter(&$form, $form_state) {
$form['site_information']['site_name']['#default_value'] = 'Open Atrium';
$form['site_information']['site_mail']['#default_value'] = 'admin@' . $_SERVER['HTTP_HOST'];
$form['admin_account']['account']['name']['#default_value'] = 'admin';
$form['admin_account']['account']['mail']['#default_value'] = 'admin@' . $_SERVER['HTTP_HOST'];
if (function_exists('date_timezone_names') && function_exists('date_timezone_update_site')) {
$form['server_settings']['date_default_timezone']['#access'] = FALSE;
$form['server_settings']['#element_validate'] = array(
'date_timezone_update_site',
);
$form['server_settings']['date_default_timezone_name'] = array(
'#type' => 'select',
'#title' => t('Default time zone'),
'#default_value' => NULL,
'#options' => date_timezone_names(FALSE, TRUE),
'#description' => t('Select the default site time zone. If in doubt, choose the timezone that is closest to your location which has the same rules for daylight saving time.'),
'#required' => TRUE,
);
}
}