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