Themeable functions

  1. 7.x drupal/modules/system/theme.api.php themeable
  2. 5.x drupal/includes/ themeable
  3. 6.x drupal/includes/ themeable
  4. 8.x drupal/core/modules/system/theme.api.php themeable

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


Namesort descending Location Description
phptemplate_menu_local_tasks drupal/themes/garland/template.php Returns the rendered local tasks. The default implementation renders them as tabs.
theme_aggregator_block_item drupal/modules/aggregator/aggregator.module Format an individual feed item for display in the block.
theme_aggregator_feed drupal/modules/aggregator/aggregator.module Format a news feed.
theme_aggregator_page_item drupal/modules/aggregator/aggregator.module Format an individual feed item for display on the aggregator page.
theme_aggregator_summary_item drupal/modules/aggregator/aggregator.module Return a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories".
theme_block drupal/includes/ Return a themed block.
theme_blocks drupal/includes/ Return a set of blocks available for the current user.
theme_book_export_html drupal/modules/book/book.module How the book's HTML export should be themed
theme_book_navigation drupal/modules/book/book.module Prepares the links to children (TOC) and forward/backward navigation for a node presented as a book page.
theme_box drupal/includes/ Return a themed box.
theme_breadcrumb drupal/includes/ Return a themed breadcrumb trail.
theme_closure drupal/includes/ Execute hook_footer() which is run at the end of the page right before the close of the body tag.
theme_comment_block drupal/modules/comment/comment.module Returns a formatted list of recent comments to be displayed in the comment block.
theme_feed_icon drupal/includes/ Return code that emits an feed icon.
theme_filter_tips drupal/modules/filter/filter.module Format a set of filter tips.
theme_forum_display drupal/modules/forum/forum.module Format the forum body.
theme_forum_icon drupal/modules/forum/forum.module Format the icon for each individual topic.
theme_forum_list drupal/modules/forum/forum.module Format the forum listing.
theme_forum_topic_list drupal/modules/forum/forum.module Format the topic listing.
theme_forum_topic_navigation drupal/modules/forum/forum.module Format the next/previous forum topic navigation links.
theme_help drupal/includes/ Return a themed help message.
theme_image drupal/includes/ Return a themed image.
theme_install_page drupal/includes/
theme_item_list drupal/includes/ Return a themed list of items.
theme_links drupal/includes/ Return a themed set of links.
theme_maintenance_page drupal/includes/
theme_mark drupal/includes/ Return a themed marker, useful for marking new or updated content.
theme_menu_item drupal/includes/ Generate the HTML output for a single menu item.
theme_menu_item_link drupal/includes/ Generate the HTML representing a given menu item ID.
theme_menu_links drupal/includes/ Returns 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_task drupal/includes/ Generate the HTML representing a given menu item ID as a tab.
theme_menu_local_tasks drupal/includes/ Returns the rendered local tasks. The default implementation renders them as tabs.
theme_menu_tree drupal/includes/ Generate the HTML for a menu tree.
theme_more_help_link drupal/includes/ Returns code that emits the 'more help'-link.
theme_node drupal/includes/ Return a themed node.
theme_page drupal/includes/ Return an entire Drupal page displaying the supplied content.
theme_pager drupal/includes/ Format a query pager.
theme_pager_first drupal/includes/ Format a "first page" link.
theme_pager_last drupal/includes/ Format a "last page" link.
theme_pager_list drupal/includes/ Format a list of nearby pages with additional query results.
theme_pager_next drupal/includes/ Format a "next page" link.
theme_pager_previous drupal/includes/ Format a "previous page" link.
theme_placeholder drupal/includes/ Formats text for emphasized display in a placeholder inside a sentence. Used automatically by t().
theme_progress_bar drupal/includes/
theme_search_item drupal/modules/search/search.module Format a single result entry of a search query. This function is normally called by theme_search_page() or hook_search_page().
theme_search_page drupal/modules/search/search.module Format the result page of a search query.
theme_status_messages drupal/includes/ Return a themed set of status and/or error messages. The messages are grouped by type.
theme_submenu drupal/includes/ Return a themed submenu, typically displayed under the tabs.
theme_table drupal/includes/ Return a themed table.
theme_tablesort_indicator drupal/includes/ Return a themed sort icon.
theme_table_select_header_cell drupal/includes/ Returns a header cell for tables that have a select all functionality.
theme_username drupal/includes/ Format a username.
theme_user_list drupal/modules/user/user.module Make a list of users.
theme_user_profile drupal/modules/user/user.module Theme a user page
theme_xml_icon drupal/includes/ Return code that emits an XML icon.


drupal/includes/, line 358
The theme system, which controls the output of Drupal.