function date_get_format in Date 6.2
Same name and namespace in other branches
- 8 date_api/date_api.module \date_get_format()
Get the format details for a particular id.
Parameters
$dfid: Identifier of a date format string.
Return value
Array of date format details.
2 calls to date_get_format()
- date_api_delete_format_form in ./
date_api.admin.inc - Menu callback; present a form for deleting a date format.
- date_api_delete_format_form_submit in ./
date_api.admin.inc - Delete a configured date format.
File
- ./
date_api.module, line 1916 - 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_get_format($dfid) {
$result = db_query('SELECT df.dfid, df.format, df.type, df.locked FROM {date_formats} df WHERE df.dfid = %d', $dfid);
return db_fetch_array($result);
}