Themeable functions

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

Namesort iconLocationDescription
theme_aggregator_block_itemdrupal/modules/aggregator.moduleFormat an individual feed item for display in the block.
theme_aggregator_feeddrupal/modules/aggregator.moduleFormat a news feed.
theme_aggregator_page_itemdrupal/modules/aggregator.moduleFormat an individual feed item for display on the aggregator page.
theme_aggregator_summary_itemdrupal/modules/aggregator.moduleReturn a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories".
theme_blockdrupal/includes/theme.incReturn a themed block.
theme_blocksdrupal/includes/theme.incReturn a set of blocks available for the current user.
theme_book_navigationdrupal/modules/book.modulePrepares both the custom breadcrumb trail and the forward/backward navigation for a node presented as a book page.
theme_boxdrupal/includes/theme.incReturn a themed box.
theme_breadcrumbdrupal/includes/theme.incReturn a themed breadcrumb trail.
theme_closuredrupal/includes/theme.incExecute hook_footer() which is run at the end of the page right before the close of the body tag.
theme_confirmdrupal/includes/theme.incOutput a confirmation form
theme_errordrupal/includes/theme.incReturn a themed error message. REMOVE: this function is deprecated an no longer used in core.
theme_filter_tipsdrupal/modules/filter.moduleFormat a set of filter tips.
theme_form_elementdrupal/includes/theme.incReturn a themed form element.
theme_forum_displaydrupal/modules/forum.moduleFormat the forum body.
theme_forum_listdrupal/modules/forum.moduleFormat the forum listing.
theme_forum_topic_listdrupal/modules/forum.moduleFormat the topic listing.
theme_imagedrupal/includes/theme.incReturn a themed image.
theme_item_listdrupal/includes/theme.incReturn a themed list of items.
theme_linksdrupal/includes/theme.incReturn a themed set of links.
theme_markdrupal/includes/theme.incReturn a themed marker, useful for marking new or updated content.
theme_menu_itemdrupal/includes/menu.incGenerate the HTML output for a single menu item.
theme_menu_item_linkdrupal/includes/menu.incGenerate the HTML representing a given menu item ID.
theme_menu_local_taskdrupal/includes/menu.incGenerate the HTML representing a given menu item ID as a tab.
theme_menu_local_tasksdrupal/includes/menu.incReturns the rendered local tasks. The default implementation renders them as tabs.
theme_menu_treedrupal/includes/menu.incGenerate the HTML for a menu tree.
theme_nodedrupal/includes/theme.incReturn a themed node.
theme_onload_attributedrupal/includes/theme.incCall 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_pagedrupal/includes/theme.incReturn an entire Drupal page displaying the supplied content.
theme_pagerdrupal/includes/pager.incFormat a query pager.
theme_pager_detaildrupal/includes/pager.incFormat a summary of the current pager position, such as "6 through 10 of 52".
theme_pager_firstdrupal/includes/pager.incFormat a "first page" link.
theme_pager_lastdrupal/includes/pager.incFormat a "last page" link.
theme_pager_listdrupal/includes/pager.incFormat a list of nearby pages with additional query results.
theme_pager_nextdrupal/includes/pager.incFormat a "next page" link.
theme_pager_previousdrupal/includes/pager.incFormat a "previous page" link.
theme_placeholderdrupal/includes/theme.incFormat a dynamic text string for emphasised display in a placeholder.
theme_search_itemdrupal/modules/search.moduleFormat a single result entry of a search query.
theme_status_messagesdrupal/includes/theme.incReturns themed set of status and/or error messages. The messages are grouped by type.
theme_stylesheet_importdrupal/includes/theme.incImport a stylesheet using @import.
theme_submenudrupal/includes/theme.incReturn a themed submenu, typically displayed under the tabs.
theme_tabledrupal/includes/theme.incReturn a themed table.
theme_xml_icondrupal/includes/theme.incReturn code that emits an XML icon.