Community Documentation

Themeable functions

  1. drupal
    1. 4.6 theme.inc
    2. 4.7 theme.inc
    3. 5 theme.inc
    4. 6 theme.inc
    5. 7 theme.api.php
    6. 8 theme.api.php

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

NameDescription
theme_aggregator_block_itemFormat an individual feed item for display in the block.
theme_aggregator_feedFormat a news feed.
theme_aggregator_page_itemFormat an individual feed item for display on the aggregator page.
theme_aggregator_summary_itemReturn a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories".
theme_blockReturn a themed block.
theme_blocksReturn a set of blocks available for the current user.
theme_book_navigationPrepares both the custom breadcrumb trail and the forward/backward navigation for a node presented as a book page.
theme_boxReturn a themed box.
theme_breadcrumbReturn a themed breadcrumb trail.
theme_closureExecute hook_footer() which is run at the end of the page right before the close of the body tag.
theme_confirmOutput a confirmation form
theme_errorReturn a themed error message. REMOVE: this function is deprecated an no longer used in core.
theme_filter_tipsFormat a set of filter tips.
theme_form_elementReturn a themed form element.
theme_forum_displayFormat the forum body.
theme_forum_listFormat the forum listing.
theme_forum_topic_listFormat the topic listing.
theme_imageReturn a themed image.
theme_item_listReturn a themed list of items.
theme_linksReturn a themed set of links.
theme_markReturn a themed marker, useful for marking new or updated content.
theme_menu_itemGenerate the HTML output for a single menu item.
theme_menu_item_linkGenerate the HTML representing a given menu item ID.
theme_menu_local_taskGenerate the HTML representing a given menu item ID as a tab.
theme_menu_local_tasksReturns the rendered local tasks. The default implementation renders them as tabs.
theme_menu_treeGenerate the HTML for a menu tree.
theme_more_help_link
theme_nodeReturn a themed node.
theme_onload_attributeCall 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_pageReturn an entire Drupal page displaying the supplied content.
theme_pagerFormat a query pager.
theme_pager_detailFormat a summary of the current pager position, such as "6 through 10 of 52".
theme_pager_firstFormat a "first page" link.
theme_pager_lastFormat a "last page" link.
theme_pager_listFormat a list of nearby pages with additional query results.
theme_pager_nextFormat a "next page" link.
theme_pager_previousFormat a "previous page" link.
theme_placeholderFormat a dynamic text string for emphasised display in a placeholder.
theme_search_itemFormat a single result entry of a search query.
theme_status_messagesReturns themed set of status and/or error messages. The messages are grouped by type.
theme_stylesheet_importImport a stylesheet using @import.
theme_submenuReturn a themed submenu, typically displayed under the tabs.
theme_tableReturn a themed table.
theme_xml_iconReturn code that emits an XML icon.

File

includes/theme.inc, line 340
The theme system, which controls the output of Drupal.

Login or register to post comments