function date_order in Date 8
Same name and namespace in other branches
- 5.2 date_api.module \date_order()
- 6.2 date_api.module \date_order()
- 7.3 date_api/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 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 379 - 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() {
return array(
'+1' => 'First',
'+2' => 'Second',
'+3' => 'Third',
'+4' => 'Fourth',
'+5' => 'Fifth',
'-1' => 'Last',
'-2' => '-2',
'-3' => '-3',
'-4' => '-4',
'-5' => '-5',
);
}