function date_order in Date 7.3
Same name and namespace in other branches
- 8 date_api/date_api.module \date_order()
- 5.2 date_api.module \date_order()
- 6.2 date_api.module \date_order()
- 7 date_api/date_api.module \date_order()
- 7.2 date_api/date_api.module \date_order()
Creates an array of ordered strings, using English text when possible.
2 calls to date_order()
- date_repeat_set_month_day in date_repeat/
date_repeat_calc.inc - Set a date object to a specific day of the month.
- date_repeat_set_year_day in date_repeat/
date_repeat_calc.inc - Set a date object to a specific day of the year.
2 string references to 'date_order'
- date_order_translated in date_api/
date_api.module - Helper function for converting back and forth from '+1' to 'First'.
- date_repeat_dow_count_options in date_repeat/
date_repeat.module - Helper function for BYDAY options.
File
- date_api/
date_api.module, line 2723 - This module will make the date API available to other modules.
Code
function date_order() {
return array(
'+1' => 'First',
'+2' => 'Second',
'+3' => 'Third',
'+4' => 'Fourth',
'+5' => 'Fifth',
'-1' => 'Last',
'-2' => '-2',
'-3' => '-3',
'-4' => '-4',
'-5' => '-5',
);
}