Same name and namespace in other branches
- 10 core/includes/common.inc \format
- 4.7.x includes/common.inc \format
- 5.x includes/common.inc \format
- 6.x includes/common.inc \format
- 7.x includes/common.inc \format
- 8.9.x core/includes/common.inc \format
- 9 core/includes/common.inc \format
Functions to format numbers, strings, dates, etc.
Parent topics
File
- includes/
common.inc, line 633 - 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_name |
includes/ |
Format a username. |
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. |