Functions that display HTML, and which can be customized by themes.
All functions that produce HTML for display should be themeable. This means that they should be named with the theme_ prefix, and invoked using theme() rather than being called directly. This allows themes to override the display of any Drupal object.
The theme system is described and defined in theme.inc.
Functions & methods
| Name | Description |
|---|---|
| theme_aggregator_block_item | Format an individual feed item for display in the block. |
| theme_aggregator_feed | Format a news feed. |
| theme_aggregator_page_item | Format an individual feed item for display on the aggregator page. |
| theme_aggregator_summary_item | Return a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories". |
| theme_block | Return a themed block. |
| theme_blocks | Return a set of blocks available for the current user. |
| theme_book_navigation | Prepares both the custom breadcrumb trail and the forward/backward navigation for a node presented as a book page. |
| theme_box | Return a themed box. |
| theme_breadcrumb | Return a themed breadcrumb trail. |
| theme_closure | Execute hook_footer() which is run at the end of the page right before the close of the body tag. |
| theme_confirm | Output a confirmation form |
| theme_error | Return a themed error message. REMOVE: this function is deprecated an no longer used in core. |
| theme_filter_tips | Format a set of filter tips. |
| theme_form_element | Return a themed form element. |
| theme_forum_display | Format the forum body. |
| theme_forum_list | Format the forum listing. |
| theme_forum_topic_list | Format the topic listing. |
| theme_image | Return a themed image. |
| theme_item_list | Return a themed list of items. |
| theme_links | Return a themed set of links. |
| theme_mark | Return a themed marker, useful for marking new or updated content. |
| theme_menu_item | Generate the HTML output for a single menu item. |
| theme_menu_item_link | Generate the HTML representing a given menu item ID. |
| theme_menu_local_task | Generate the HTML representing a given menu item ID as a tab. |
| theme_menu_local_tasks | Returns the rendered local tasks. The default implementation renders them as tabs. |
| theme_menu_tree | Generate the HTML for a menu tree. |
| theme_more_help_link | |
| theme_node | Return a themed node. |
| theme_onload_attribute | Call hook_onload() in all modules to enable modules to insert JavaScript that will get run once the page has been loaded by the browser. |
| theme_page | Return an entire Drupal page displaying the supplied content. |
| theme_pager | Format a query pager. |
| theme_pager_detail | Format a summary of the current pager position, such as "6 through 10 of 52". |
| theme_pager_first | Format a "first page" link. |
| theme_pager_last | Format a "last page" link. |
| theme_pager_list | Format a list of nearby pages with additional query results. |
| theme_pager_next | Format a "next page" link. |
| theme_pager_previous | Format a "previous page" link. |
| theme_placeholder | Format a dynamic text string for emphasised display in a placeholder. |
| theme_search_item | Format a single result entry of a search query. |
| theme_status_messages | Returns themed set of status and/or error messages. The messages are grouped by type. |
| theme_stylesheet_import | Import a stylesheet using @import. |
| theme_submenu | Return a themed submenu, typically displayed under the tabs. |
| theme_table | Return a themed table. |
| theme_xml_icon | Return code that emits an XML icon. |
File
- includes/
theme.inc, line 340 - The theme system, which controls the output of Drupal.