- Renamed the 'first day of week' setting to be more consistent with the other date settings.
parent
d186dcc8c8
commit
2446f32c92
|
@ -91,7 +91,7 @@ function archive_calendar($original = 0) {
|
|||
$output .= ' <caption>'. l('«', 'archive/'. date('Y/m/d', $prev), array('title' => t('Previous month'))) .' '. format_date($requested, 'custom', 'F') . date(' Y', $requested) .' '. ($nextmonth <= time() ? l('»', 'archive/'. date('Y/m/d', $next), array('title' => t('Next month'))) : ' ') ."</caption>\n";
|
||||
|
||||
// First day of week (0 => Sunday, 1 => Monday, ...)
|
||||
$weekstart = variable_get('default_firstday', 0);
|
||||
$weekstart = variable_get('date_first_day', 0);
|
||||
|
||||
// Last day of week
|
||||
($weekstart - 1 == -1) ? $lastday = 6 : $lastday = $weekstart - 1;
|
||||
|
|
|
@ -91,7 +91,7 @@ function archive_calendar($original = 0) {
|
|||
$output .= ' <caption>'. l('«', 'archive/'. date('Y/m/d', $prev), array('title' => t('Previous month'))) .' '. format_date($requested, 'custom', 'F') . date(' Y', $requested) .' '. ($nextmonth <= time() ? l('»', 'archive/'. date('Y/m/d', $next), array('title' => t('Next month'))) : ' ') ."</caption>\n";
|
||||
|
||||
// First day of week (0 => Sunday, 1 => Monday, ...)
|
||||
$weekstart = variable_get('default_firstday', 0);
|
||||
$weekstart = variable_get('date_first_day', 0);
|
||||
|
||||
// Last day of week
|
||||
($weekstart - 1 == -1) ? $lastday = 6 : $lastday = $weekstart - 1;
|
||||
|
|
|
@ -241,7 +241,7 @@ function system_view_general() {
|
|||
$group .= form_select(t('Short date format'), 'date_format_short', variable_get('date_format_short', $dateshort[0]), $dateshortchoices, t('The short format of date display.'));
|
||||
$group .= form_select(t('Medium date format'), 'date_format_medium', variable_get('date_format_medium', $datemedium[0]), $datemediumchoices, t('The medium sized date display.'));
|
||||
$group .= form_select(t('Long date format'), 'date_format_long', variable_get('date_format_long', $datelong[0]), $datelongchoices, t('Longer date format used for detailed display.'));
|
||||
$group .= form_select(t('First day of week'), 'default_firstday', variable_get('default_firstday', 0), array(0 => t('Sunday'), 1 => t('Monday'), 2 => t('Tuesday'), 3 => t('Wednesday'), 4 => t('Thursday'), 5 => t('Friday'), 6 => t('Saturday')), t('The first day of the week for calendar views.'));
|
||||
$group .= form_select(t('First day of week'), 'date_first_day', variable_get('date_first_day', 0), array(0 => t('Sunday'), 1 => t('Monday'), 2 => t('Tuesday'), 3 => t('Wednesday'), 4 => t('Thursday'), 5 => t('Friday'), 6 => t('Saturday')), t('The first day of the week for calendar views.'));
|
||||
|
||||
$output .= form_group(t('Date settings'), $group);
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@ function system_view_general() {
|
|||
$group .= form_select(t('Short date format'), 'date_format_short', variable_get('date_format_short', $dateshort[0]), $dateshortchoices, t('The short format of date display.'));
|
||||
$group .= form_select(t('Medium date format'), 'date_format_medium', variable_get('date_format_medium', $datemedium[0]), $datemediumchoices, t('The medium sized date display.'));
|
||||
$group .= form_select(t('Long date format'), 'date_format_long', variable_get('date_format_long', $datelong[0]), $datelongchoices, t('Longer date format used for detailed display.'));
|
||||
$group .= form_select(t('First day of week'), 'default_firstday', variable_get('default_firstday', 0), array(0 => t('Sunday'), 1 => t('Monday'), 2 => t('Tuesday'), 3 => t('Wednesday'), 4 => t('Thursday'), 5 => t('Friday'), 6 => t('Saturday')), t('The first day of the week for calendar views.'));
|
||||
$group .= form_select(t('First day of week'), 'date_first_day', variable_get('date_first_day', 0), array(0 => t('Sunday'), 1 => t('Monday'), 2 => t('Tuesday'), 3 => t('Wednesday'), 4 => t('Thursday'), 5 => t('Friday'), 6 => t('Saturday')), t('The first day of the week for calendar views.'));
|
||||
|
||||
$output .= form_group(t('Date settings'), $group);
|
||||
|
||||
|
|
Loading…
Reference in New Issue