function date_order_translated in Date 6.2
Same name and namespace in other branches
- 8 date_api/date_api.module \date_order_translated()
- 5.2 date_api.module \date_order_translated()
- 7.3 date_api/date_api.module \date_order_translated()
- 7 date_api/date_api.module \date_order_translated()
- 7.2 date_api/date_api.module \date_order_translated()
Helper function for BYDAY options in Date Repeat and for converting back and forth from '+1' to 'First'.
1 call to date_order_translated()
- date_repeat_dow_count_options in date_repeat/
date_repeat.module - Helper function for BYDAY options.
File
- ./
date_api.module, line 2252 - This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.
Code
function date_order_translated() {
return array(
'+1' => date_t('First', 'date_order'),
'+2' => date_t('Second', 'date_order'),
'+3' => date_t('Third', 'date_order'),
'+4' => date_t('Fourth', 'date_order'),
'+5' => date_t('Fifth', 'date_order'),
'-1' => date_t('Last', 'date_order_reverse'),
'-2' => date_t('Next to last', 'date_order_reverse'),
'-3' => date_t('Third from last', 'date_order_reverse'),
'-4' => date_t('Fourth from last', 'date_order_reverse'),
'-5' => date_t('Fifth from last', 'date_order_reverse'),
);
}