Formatting in Drupal 4
Same name and namespace in other branches
- 8 core/includes/common.inc \format
- 5 includes/common.inc \format
- 6 includes/common.inc \format
- 7 includes/common.inc \format
- 9 core/includes/common.inc \format
Functions to format numbers, strings, dates, etc.
Parent topics
File
- includes/
common.inc, line 719 - Common functions that many Drupal modules will need to reference.
Functions
Name | Location | Description |
---|---|---|
format_date |
includes/ |
Format a date with the given configured format or a custom format string. |
format_interval |
includes/ |
Format a time interval with the requested granularity. |
format_plural |
includes/ |
Format a string containing a count of items. |
format_rss_channel |
includes/ |
Formats an RSS channel. |
format_rss_item |
includes/ |
Format a single RSS item. |
format_size |
includes/ |
Generate a string representation for the given byte count. |
format_xml_elements |
includes/ |
Format XML elements. |