system_get_date_format

7 system.module system_get_date_format($dfid)
8 system.module 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.

3 calls to system_get_date_format()

File

modules/system/system.module, line 3605
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();
}
Login or register to post comments