Constructs a translated array of 1-letter week day abbreviations.
bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE.
array An array of week day 1 letter abbreviations
public static function weekDaysAbbr1($required = FALSE) {
$weekdays = array(
t('S', array(), array(
'context' => 'Sunday 1 letter abbreviation',
)),
t('M', array(), array(
'context' => 'Monday 1 letter abbreviation',
)),
t('T', array(), array(
'context' => 'Tuesday 1 letter abbreviation',
)),
t('W', array(), array(
'context' => 'Wednesday 1 letter abbreviation',
)),
t('T', array(), array(
'context' => 'Thursday 1 letter abbreviation',
)),
t('F', array(), array(
'context' => 'Friday 1 letter abbreviation',
)),
t('S', array(), array(
'context' => 'Saturday 1 letter abbreviation',
)),
);
$none = array(
'' => '',
);
return !$required ? $none + $weekdays : $weekdays;
}