'admin/settings/date_php4', 'title' => t('Date PHP4'), 'description' => t('Date PHP4 setup.'), 'access' => user_access('administer date_php4 settings'), 'callback' => 'drupal_get_form', 'callback arguments' => array('date_php4_settings_form'), 'type' => MENU_NORMAL_ITEM, 'weight' => 6, ); } return $items; } /** * Timezone handling. */ function date_php4_settings_form() { drupal_set_title(t('Date PHP4 Settings')); $form['date_use_server_zone'] = array( '#type' => 'select', '#options' => array(TRUE, t('TRUE'), FALSE => t('FALSE')), '#default_value' => variable_get('date_use_server_zone', FALSE), '#title' => t('Use PHP default timezone'), '#description' => t('Getting date computations working correctly in PHP versions earlier than PHP 5.2 involves extra computations that add a lot of overhead. These computations are needed because the timezone PHP uses on date computations may not match the site or user timezone or other date-specific timezones. We can speed processing up if we assume that PHP is using the correct timezone, but need to do more time-intensive processing if it is not. If timezone adjustments do not seem to be working correctly in your setup, you can set this option to FALSE to force the system to use the more accurate, but slower, timezone computations.'), ); $form['submit'] = array( '#type' => 'submit', '#value' => t('Save'), ); return $form; } function date_php4_settings_form_submit($form_id, $form_values) { variable_set('date_use_server_zone', $form_values['date_use_server_zone']); }