Formatting
Functions to format numbers, strings, dates, etc.
File
- drupal-6.x/
includes/ common.inc, line 1093 - Common functions that many Drupal modules will need to reference.
Functions
Name | Location | Description |
---|---|---|
format_date |
drupal-6.x/ |
Format a date with the given configured format or a custom format string. |
format_interval |
drupal-6.x/ |
Format a time interval with the requested granularity. |
format_plural |
drupal-6.x/ |
Format a string containing a count of items. |
format_rss_channel |
drupal-6.x/ |
Formats an RSS channel. |
format_rss_item |
drupal-6.x/ |
Format a single RSS item. |
format_size |
drupal-6.x/ |
Generate a string representation for the given byte count. |
format_xml_elements |
drupal-6.x/ |
Format XML elements. |
parse_size |
drupal-6.x/ |
Parse a given byte count. |