You are here

function date_format_type_options in Date 7

Same name and namespace in other branches
  1. 8 date_api/date_api.module \date_format_type_options()
  2. 7.3 date_api/date_api.module \date_format_type_options()
  3. 7.2 date_api/date_api.module \date_format_type_options()
2 calls to date_format_type_options()
date_default_formatter_settings_form in ./date_admin.inc
Settings for the default formatter.
date_default_formatter_settings_summary in ./date_admin.inc
Settings summary for the default formatter.

File

date_api/date_api.module, line 1947
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_format_type_options() {
  $options = array();
  $format_types = system_get_date_types();
  if (!empty($format_types)) {
    foreach ($format_types as $type => $type_info) {
      $options[$type] = $type_info['title'];
    }
  }
  return $options;
}