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
phptemplate_menu_local_tasksdrupal/themes/garland/template.phpReturns the rendered local tasks. The default implementation renders them as tabs.
theme_aggregator_block_itemdrupal/modules/aggregator/aggregator.moduleFormat an individual feed item for display in the block.
theme_aggregator_feeddrupal/modules/aggregator/aggregator.moduleFormat a news feed.
theme_aggregator_page_itemdrupal/modules/aggregator/aggregator.moduleFormat an individual feed item for display on the aggregator page.
theme_aggregator_summary_itemdrupal/modules/aggregator/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_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_comment_blockdrupal/modules/comment/comment.moduleReturns a formatted list of recent comments to be displayed in the comment block.
theme_feed_icondrupal/includes/theme.incReturn code that emits an feed icon.
theme_filter_tipsdrupal/modules/filter/filter.moduleFormat a set of filter tips.
theme_forum_displaydrupal/modules/forum/forum.moduleFormat the forum body.
theme_forum_icondrupal/modules/forum/forum.moduleFormat the icon for each individual topic.
theme_forum_listdrupal/modules/forum/forum.moduleFormat the forum listing.
theme_forum_topic_listdrupal/modules/forum/forum.moduleFormat the topic listing.
theme_forum_topic_navigationdrupal/modules/forum/forum.moduleFormat the next/previous forum topic navigation links.
theme_helpdrupal/includes/theme.incReturn a themed help message.
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_linksdrupal/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/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_more_help_linkdrupal/includes/theme.incReturns code that emits the 'more help'-link.
theme_nodedrupal/includes/theme.incReturn a themed node.
theme_pagedrupal/includes/theme.incReturn an entire Drupal page displaying the supplied content.
theme_pagerdrupal/includes/pager.incFormat a query pager.
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.incFormats text for emphasized display in a placeholder inside a sentence. Used automatically by t().
theme_search_itemdrupal/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/modules/search/search.moduleFormat the result page of a search query.
theme_status_messagesdrupal/includes/theme.incReturn a themed set of status and/or error messages. The messages are grouped by type.
theme_submenudrupal/includes/theme.incReturn a themed submenu, typically displayed under the tabs.
theme_tabledrupal/includes/theme.incReturn a themed table.
theme_tablesort_indicatordrupal/includes/theme.incReturn a themed sort icon.
theme_table_select_header_celldrupal/includes/theme.incReturns a header cell for tables that have a select all functionality.
theme_uc_attributeubercart/uc_attribute/uc_attribute.moduleDisplay formatted of data associated with attributes
theme_uc_attribute_optionsubercart/uc_attribute/uc_attribute.moduleFormat an attribute and its options.
theme_uc_catalog_block_endubercart/uc_catalog/uc_catalog.moduleTheme the end of the catalog block. See alsotheme_uc_catalog_block_start
theme_uc_catalog_block_startubercart/uc_catalog/uc_catalog.moduleTheme the beginning of the catalog block. See alsotheme_uc_catalog_item
theme_uc_catalog_itemubercart/uc_catalog/uc_catalog.moduleDisplay a formatted link in the catalog block. See alsotheme_uc_catalog_block_start
theme_uc_object_attributes_formubercart/uc_attribute/uc_attribute.moduleDisplay the formatted attribute form.
theme_uc_object_options_formubercart/uc_attribute/uc_attribute.moduleDisplay the option form.
theme_uc_product_add_to_cartubercart/uc_product/uc_product.moduleWrap the "Add to Cart" form in a <div>.
theme_uc_product_dimensionsubercart/uc_product/uc_product.moduleFormat a product's length, width, and height.
theme_uc_product_dimensions_formubercart/uc_product/uc_product.modulePut length, width, and height fields on the same line.
theme_uc_product_display_priceubercart/uc_product/uc_product.module
theme_uc_product_feature_add_formubercart/uc_product/uc_product.module
theme_uc_product_field_settings_formubercart/uc_product/uc_product.moduleDisplay the product field settings form. See alsouc_product_field_settings_form
theme_uc_product_form_pricesubercart/uc_product/uc_product.module
theme_uc_product_form_weightubercart/uc_product/uc_product.module
theme_uc_product_imageubercart/uc_product/uc_product.moduleFormat a product's images with imagecache and Thickbox.
theme_uc_product_kit_add_to_cartubercart/uc_product_kit/uc_product_kit.moduleWrap the "Add to Cart" form in a <div>.
theme_uc_product_modelubercart/uc_product/uc_product.moduleFormat a product's model number.
theme_uc_product_priceubercart/uc_product/uc_product.moduleFormat a product's price.
theme_uc_product_sell_priceubercart/uc_product/uc_product.moduleFormat the selling price based on the view mode.
theme_uc_product_weightubercart/uc_product/uc_product.moduleFormat a product's weight.
theme_uc_quote_method_settingsubercart/shipping/uc_quote/uc_quote.moduleDisplay a formatted list of shipping quote methods and form elements. See alsouc_quote_method_settings
theme_uc_shipping_addressubercart/shipping/uc_shipping/uc_shipping.moduleCompact the address into a table.
theme_uc_shipping_edit_package_fieldsetubercart/shipping/uc_shipping/uc_shipping.moduleDisplay a formatted shipping type fieldset.
theme_uc_shipping_new_package_fieldsetubercart/shipping/uc_shipping/uc_shipping.moduleFormat and display the products in a shipping type fieldset.
theme_uc_shipping_new_shipmentubercart/shipping/uc_shipping/uc_shipping.moduleFormat and display the new shipment form.
theme_uc_shipping_package_dimensionsubercart/shipping/uc_shipping/uc_shipping.moduleDisplay length, width, and height fields on one line.
theme_uc_ups_label_imageubercart/shipping/uc_ups/uc_ups.moduleDisplay the shipping label for printing.
theme_usernamedrupal/includes/theme.incFormat a username.
theme_user_listdrupal/modules/user/user.moduleMake a list of users.
theme_user_profiledrupal/modules/user/user.moduleTheme a user page
theme_xml_icondrupal/includes/theme.incReturn code that emits an XML icon.