function date_default_format in Date 7.3
Same name and namespace in other branches
- 6.2 date/date.module \date_default_format()
- 7 date.module \date_default_format()
- 7.2 date.module \date_default_format()
Gets the default date format for the given field widget.
4 calls to date_default_format()
- DateFieldTestBase::createDateField in tests/
DateFieldTestBase.test - Creates a date field from an array of settings values.
- DateFieldTestBase::createMultiDateField in tests/
DateFieldTestBase.test - Creates a date field from an array of settings values.
- date_field_widget_info in ./
date.field.inc - Implements hook_field_widget_info().
- date_tools_wizard_build in date_tools/
date_tools.wizard.inc - Wizard build.
File
- ./
date.module, line 36
Code
function date_default_format($type) {
// Example input formats must show all possible date parts, so add seconds.
$default_format = str_replace('i', 'i:s', variable_get('date_format_short', 'm/d/Y - H:i'));
return $default_format;
}