Themeable functions

  1. drupal
    1. 5
    2. 6
    3. 7 theme.api.php
    4. 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

Functions & methods

phptemplate_menu_local_tasksReturns the rendered local tasks. The default implementation renders them as tabs.
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_export_htmlHow the book's HTML export should be themed
theme_book_navigationPrepares the links to children (TOC) and 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_comment_blockReturns a formatted list of recent comments to be displayed in the comment block.
theme_feed_iconReturn code that emits an feed icon.
theme_filter_tipsFormat a set of filter tips.
theme_forum_displayFormat the forum body.
theme_forum_iconFormat the icon for each individual topic.
theme_forum_listFormat the forum listing.
theme_forum_topic_listFormat the topic listing.
theme_forum_topic_navigationFormat the next/previous forum topic navigation links.
theme_helpReturn a themed help message.
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_linksReturns the themed HTML for primary and secondary links. Note that this function is overridden by most core themes because those themes display links in "link | link" format, not from a list. Also note that by default links rendered with…
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_linkReturns code that emits the 'more help'-link.
theme_nodeReturn a themed node.
theme_pageReturn an entire Drupal page displaying the supplied content.
theme_pagerFormat a query pager.
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_placeholderFormats text for emphasized display in a placeholder inside a sentence. Used automatically by t().
theme_search_itemFormat a single result entry of a search query. This function is normally called by theme_search_page() or hook_search_page().
theme_search_pageFormat the result page of a search query.
theme_status_messagesReturn a themed set of status and/or error messages. The messages are grouped by type.
theme_submenuReturn a themed submenu, typically displayed under the tabs.
theme_tableReturn a themed table.
theme_tablesort_indicatorReturn a themed sort icon.
theme_table_select_header_cellReturns a header cell for tables that have a select all functionality.
theme_usernameFormat a username.
theme_user_listMake a list of users.
theme_user_profileTheme a user page
theme_xml_iconReturn code that emits an XML icon.

includes/, line 358