Formatting

  1. drupal
    1. 4.6 includes/common.inc
    2. 4.7 includes/common.inc
    3. 5 includes/common.inc
    4. 6 includes/common.inc
    5. 7 includes/common.inc
    6. 8 core/includes/common.inc

Functions to format numbers, strings, dates, etc.

Functions & methods

NameDescription
format_dateFormat a date with the given configured format or a custom format string.
format_intervalFormat a time interval with the requested granularity.
format_pluralFormat a string containing a count of items.
format_rss_channelFormats an RSS channel.
format_rss_itemFormat a single RSS item.
format_sizeGenerate a string representation for the given byte count.
format_xml_elementsFormat XML elements.

File

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

Login or register to post comments