Functions to format numbers, strings, dates, etc.
File
- core/
includes/ common.inc, line 2140 - Common functions that many Backdrop modules will need to reference.
Functions
Name | Location | Description |
---|---|---|
format_date |
core/ |
Formats a date, using a date type or a custom date format string. |
format_interval |
core/ |
Formats a time interval with the requested granularity. |
format_plural |
core/ |
Formats a string containing a count of items. |
format_rss_channel |
core/ |
Formats an RSS channel. |
format_rss_item |
core/ |
Formats a single RSS item. |
format_size |
core/ |
Generates a string representation for the given byte count. |
format_xml_elements |
core/ |
Recursively formats nested XML array elements as a string. |
parse_size |
core/ |
Parses a given byte count. |
_format_date_callback |
core/ |
Translates a formatted date string. |