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
phptemplate_menu_local_tasksdrupal-5/themes/garland/template.phpReturns the rendered local tasks. The default implementation renders them as tabs.
theme_address_overviewecommerce-5--4/address/address.module
theme_address_pageecommerce-5--4/address/address.moduleAlmost all address pages may have this help text
theme_aggregator_block_itemdrupal-5/modules/aggregator/aggregator.moduleFormat an individual feed item for display in the block.
theme_aggregator_feeddrupal-5/modules/aggregator/aggregator.moduleFormat a news feed.
theme_aggregator_page_itemdrupal-5/modules/aggregator/aggregator.moduleFormat an individual feed item for display on the aggregator page.
theme_aggregator_summary_itemdrupal-5/modules/aggregator/aggregator.moduleReturn a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories".
theme_auction_bid_formecommerce-5--4/contrib/auction/auction.moduleFormats the HTML elements that you see when you _Bid_ on an auction. You can override this function. Refer to Theming at http://drupal.org/node/55126. Called indirectly by theme_product_auction_view()
theme_auction_bid_historyecommerce-5--4/contrib/auction/auction.moduleFormats the Bidders' list
theme_blockdrupal-5/includes/theme.incReturn a themed block.
theme_blocksdrupal-5/includes/theme.incReturn a set of blocks available for the current user.
theme_book_export_htmldrupal-5/modules/book/book.moduleHow the book's HTML export should be themed
theme_book_navigationdrupal-5/modules/book/book.modulePrepares the links to children (TOC) and forward/backward navigation for a node presented as a book page.
theme_boxdrupal-5/includes/theme.incReturn a themed box.
theme_breadcrumbdrupal-5/includes/theme.incReturn a themed breadcrumb trail.
theme_cart_display_blockecommerce-5--4/cart/cart.moduleThemes the cart block. Called by cart_display_block().
theme_cart_display_block_itemecommerce-5--4/cart/cart.moduleThemes the cart block item
theme_cart_display_block_titleecommerce-5--4/cart/cart.moduleThemes the cart block title
theme_cart_view_formecommerce-5--4/cart/cart.moduleReturns a themed shopping cart form.
theme_closuredrupal-5/includes/theme.incExecute hook_footer() which is run at the end of the page right before the close of the body tag.
theme_comment_blockdrupal-5/modules/comment/comment.moduleReturns a formatted list of recent comments to be displayed in the comment block.
theme_ecivicrm_address_reviewecommerce-5--4/contrib/ecivicrm/ecivicrm.moduleFormat an address for review in the checkout procedure.
theme_ecivicrm_review_formecommerce-5--4/contrib/ecivicrm/ecivicrm.module
theme_ec_anon_review_formecommerce-5--4/ec_anon/ec_anon.moduleInsert the email field in case the user is not logged
theme_ec_checkout_admin_screen_formecommerce-5--4/ec_checkout/ec_checkout.admin.incThemes the admin screen
theme_ec_checkout_checkout_review_formecommerce-5--4/ec_checkout/ec_checkout.module
theme_ec_customer_addressecommerce-5--4/ec_customer/ec_customer.moduleThemes the address form elements on the checkout review page
theme_ec_customer_anon_addressecommerce-5--4/ec_customer/ec_customer.module
theme_ec_customer_ctypes_formecommerce-5--4/ec_customer/ec_customer.module
theme_ec_receipt_admin_rtypes_formecommerce-5--4/ec_receipt/ec_receipt.module
theme_ec_receipt_iconecommerce-5--4/ec_receipt/ec_receipt.module
theme_ec_region_configureecommerce-5--4/contrib/ec_region/ec_region.module
theme_eurobill_product_settings_formecommerce-5--4/contrib/eurobill/eurobill.module
theme_feed_icondrupal-5/includes/theme.incReturn code that emits an feed icon.
theme_filter_tipsdrupal-5/modules/filter/filter.moduleFormat a set of filter tips.
theme_forum_displaydrupal-5/modules/forum/forum.moduleFormat the forum body.
theme_forum_icondrupal-5/modules/forum/forum.moduleFormat the icon for each individual topic.
theme_forum_listdrupal-5/modules/forum/forum.moduleFormat the forum listing.
theme_forum_topic_listdrupal-5/modules/forum/forum.moduleFormat the topic listing.
theme_forum_topic_navigationdrupal-5/modules/forum/forum.moduleFormat the next/previous forum topic navigation links.
theme_helpdrupal-5/includes/theme.incReturn a themed help message.
theme_imagedrupal-5/includes/theme.incReturn a themed image.
theme_invoice_form_productecommerce-5--4/product/product.module
theme_invoice_settings_order_formecommerce-5--4/invoice/invoice.module
theme_item_listdrupal-5/includes/theme.incReturn a themed list of items.
theme_linksdrupal-5/includes/theme.incReturn a themed set of links.
theme_mail_previewecommerce-5--4/ec_mail/ec_mail.module
theme_markdrupal-5/includes/theme.incReturn a themed marker, useful for marking new or updated content.
theme_menu_itemdrupal-5/includes/menu.incGenerate the HTML output for a single menu item.
theme_menu_item_linkdrupal-5/includes/menu.incGenerate the HTML representing a given menu item ID.
theme_menu_linksdrupal-5/includes/menu.incReturns 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_taskdrupal-5/includes/menu.incGenerate the HTML representing a given menu item ID as a tab.
theme_menu_local_tasksdrupal-5/includes/menu.incReturns the rendered local tasks. The default implementation renders them as tabs.
theme_menu_treedrupal-5/includes/menu.incGenerate the HTML for a menu tree.
theme_more_help_linkdrupal-5/includes/theme.incReturns code that emits the 'more help'-link.
theme_nodedrupal-5/includes/theme.incReturn a themed node.
theme_pagedrupal-5/includes/theme.incReturn an entire Drupal page displaying the supplied content.
theme_pagerdrupal-5/includes/pager.incFormat a query pager.
theme_pager_firstdrupal-5/includes/pager.incFormat a "first page" link.
theme_pager_lastdrupal-5/includes/pager.incFormat a "last page" link.
theme_pager_listdrupal-5/includes/pager.incFormat a list of nearby pages with additional query results.
theme_pager_nextdrupal-5/includes/pager.incFormat a "next page" link.
theme_pager_previousdrupal-5/includes/pager.incFormat a "previous page" link.
theme_placeholderdrupal-5/includes/theme.incFormats text for emphasized display in a placeholder inside a sentence. Used automatically by t().
theme_priceecommerce-5--4/product/product.module
theme_product_admin_ptypes_feature_listecommerce-5--4/product/product.admin.inc
theme_product_auction_view_formecommerce-5--4/contrib/auction/auction.moduleFormats the HTML elements that you see when you _View_ an auction.
theme_product_autocompleteecommerce-5--4/product/product.module
theme_product_edit_formecommerce-5--4/product/product.admin.inc
theme_product_edit_form_productecommerce-5--4/product/product.admin.inc
theme_product_parcel_viewecommerce-5--4/parcel/parcel.moduleShow each children product that this product contains
theme_product_priceecommerce-5--4/product/product.moduleDisplay the product price
theme_product_views_product_listecommerce-5--4/product/product.views.incThemes a product page into a table similar to that in the previous 4.7 product page.
theme_radios_rowecommerce-5--4/contrib/ec_region/ec_region.module
theme_radios_row_optionecommerce-5--4/contrib/ec_region/ec_region.module
theme_role_discount_formecommerce-5--4/contrib/role_discount/role_discount.moduleTheme role_discount_form.
theme_search_itemdrupal-5/modules/search/search.moduleFormat a single result entry of a search query. This function is normally called by theme_search_page() or hook_search_page().
theme_search_pagedrupal-5/modules/search/search.moduleFormat the result page of a search query.
theme_shipping_checkout_formecommerce-5--4/shipping/shipping.moduleTheme the checkout.
theme_shipping_fulfillmentcenter_listecommerce-5--4/shipping/shipping.admin.incTheme the table of fulfillment centers.
theme_status_messagesdrupal-5/includes/theme.incReturn a themed set of status and/or error messages. The messages are grouped by type.
theme_submenudrupal-5/includes/theme.incReturn a themed submenu, typically displayed under the tabs.
theme_tabledrupal-5/includes/theme.incReturn a themed table.
theme_tablesort_indicatordrupal-5/includes/theme.incReturn a themed sort icon.
theme_table_select_header_celldrupal-5/includes/theme.incReturns a header cell for tables that have a select all functionality.
theme_usernamedrupal-5/includes/theme.incFormat a username.
theme_user_listdrupal-5/modules/user/user.moduleMake a list of users.
theme_user_profiledrupal-5/modules/user/user.moduleTheme a user page
theme_xml_icondrupal-5/includes/theme.incReturn code that emits an XML icon.
theme__address_formecommerce-5--4/address/address.incFormat the Address form