function system_get_date_format
system_get_date_format($dfid)
Gets the format details for a particular format ID.
Parameters
$dfid: A date format ID.
Return value
A date format object with the following properties:
- dfid: The date format ID.
- format: The date format string.
- type: The name of the date type.
- locked: Whether the date format can be changed or not.
File
- modules/system/system.module, line 3641
- Configuration system that lets administrators modify the workings of the site.
Code
function system_get_date_format($dfid) { return db_query('SELECT df.dfid, df.format, df.type, df.locked FROM {date_formats} df WHERE df.dfid = :dfid', array(':dfid' => $dfid))->fetch(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.module/function/system_get_date_format/7.x