1. 1.12.x includes/common.inc format
  2. 1.10.x includes/common.inc format
  3. 1.11.x includes/common.inc format
  4. 1.7.x includes/common.inc format

Functions to format numbers, strings, dates, etc.

File

includes/common.inc, line 2011
Common functions that many Backdrop modules will need to reference.

Functions

Namesort descending Location Description
format_date includes/common.inc Formats a date, using a date type or a custom date format string.
_format_date_callback includes/common.inc Translates a formatted date string.
format_interval includes/common.inc Formats a time interval with the requested granularity.
format_plural includes/common.inc Formats a string containing a count of items.
format_rss_channel includes/common.inc Formats an RSS channel.
format_rss_item includes/common.inc Formats a single RSS item.
format_size includes/common.inc Generates a string representation for the given byte count.
format_xml_elements includes/common.inc Recursively formats nested XML array elements as a string.
parse_size includes/common.inc Parses a given byte count.