Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Render/theme.api.php \themeable
- 4.7.x includes/theme.inc \themeable
- 5.x includes/theme.inc \themeable
- 6.x includes/theme.inc \themeable
- 7.x modules/system/theme.api.php \themeable
- 8.9.x core/lib/Drupal/Core/Render/theme.api.php \themeable
- 9 core/lib/Drupal/Core/Render/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 theme.inc.
File
- includes/
theme.inc, line 340 - The theme system, which controls the output of Drupal.
Functions
Name | Location | Description |
---|---|---|
_theme_table_cell |
includes/ |
End of "defgroup themeable". |
theme_xml_icon |
includes/ |
Return code that emits an XML icon. |
theme_table |
includes/ |
Return a themed table. |
theme_submenu |
includes/ |
Return a themed submenu, typically displayed under the tabs. |
theme_stylesheet_import |
includes/ |
Import a stylesheet using @import. |
theme_status_messages |
includes/ |
Returns themed set of status and/or error messages. The messages are grouped by type. |
theme_search_item |
modules/ |
Format a single result entry of a search query. |
theme_placeholder |
includes/ |
Format a dynamic text string for emphasised display in a placeholder. |
theme_pager_previous |
includes/ |
Format a "previous page" link. |
theme_pager_next |
includes/ |
Format a "next page" link. |
theme_pager_list |
includes/ |
Format a list of nearby pages with additional query results. |
theme_pager_last |
includes/ |
Format a "last page" link. |
theme_pager_first |
includes/ |
Format a "first page" link. |
theme_pager_detail |
includes/ |
Format a summary of the current pager position, such as "6 through 10 of 52". |
theme_pager |
includes/ |
Format a query pager. |
theme_page |
includes/ |
Return an entire Drupal page displaying the supplied content. |
theme_onload_attribute |
includes/ |
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_node |
includes/ |
Return a themed node. |
theme_more_help_link |
includes/ |
|
theme_menu_tree |
includes/ |
Generate the HTML for a menu tree. |
theme_menu_local_tasks |
includes/ |
Returns the rendered local tasks. The default implementation renders them as tabs. |
theme_menu_local_task |
includes/ |
Generate the HTML representing a given menu item ID as a tab. |
theme_menu_item_link |
includes/ |
Generate the HTML representing a given menu item ID. |
theme_menu_item |
includes/ |
Generate the HTML output for a single menu item. |
theme_mark |
includes/ |
Return a themed marker, useful for marking new or updated content. |
theme_links |
includes/ |
Return a themed set of links. |
theme_item_list |
includes/ |
Return a themed list of items. |
theme_image |
includes/ |
Return a themed image. |
theme_forum_topic_list |
modules/ |
Format the topic listing. |
theme_forum_list |
modules/ |
Format the forum listing. |
theme_forum_display |
modules/ |
Format the forum body. |
theme_form_element |
includes/ |
Return a themed form element. |
theme_filter_tips |
modules/ |
Format a set of filter tips. |
theme_error |
includes/ |
Return a themed error message. REMOVE: this function is deprecated an no longer used in core. |
theme_confirm |
includes/ |
Output a confirmation form |
theme_closure |
includes/ |
Execute hook_footer() which is run at the end of the page right before the close of the body tag. |
theme_breadcrumb |
includes/ |
Return a themed breadcrumb trail. |
theme_box |
includes/ |
Return a themed box. |
theme_book_navigation |
modules/ |
Prepares both the custom breadcrumb trail and the forward/backward navigation for a node presented as a book page. |
theme_blocks |
includes/ |
Return a set of blocks available for the current user. |
theme_block |
includes/ |
Return a themed block. |
theme_aggregator_summary_item |
modules/ |
Return a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories". |
theme_aggregator_page_item |
modules/ |
Format an individual feed item for display on the aggregator page. |
theme_aggregator_feed |
modules/ |
Format a news feed. |
theme_aggregator_block_item |
modules/ |
Format an individual feed item for display in the block. |