Theme functions are used to render UI elements in a consistent way. There are theme functions defined for over 200 elements in Backdrop core, and while many of them are only used for special purposes, many others are used widely; all are available to developers.
Note that you should never call a theme function directly; instead of
$output = theme_something($variables);
you should call
$output = theme('something', $variables);
to allow for setting of default values, overrides, and modifications. See Default theme implementations for more details.
Function | Location | Summary |
---|---|---|
theme_image_widget |
core/ |
Returns HTML for an image field widget. |
theme_indentation |
core/ |
Returns HTML for an indentation div. Used for drag and drop tables. |
theme_installer_browser_project_description |
core/ |
Builds the truncated description on the project list. |
theme_install_page |
core/ |
Returns HTML for the installation page. |
theme_item_list |
core/ |
Returns HTML for a list or nested list of items. |
theme_label_machine_name |
core/ |
Returns HTML for the display of a label and its machine name. |
theme_language_admin_overview_form_table |
core/ |
Returns HTML for the language overview form. |
theme_language_negotiation_configure_form |
core/ |
Returns HTML for the language negotiation configuration form. |
theme_layout_action_links |
core/ |
Output a list of action links for layouts. |
theme_layout_conditions |
core/ |
Output the list of visibility conditions for layouts. |
theme_layout_condition_info |
core/ |
Outputs a list of conditions. Used in the layout listing page. |
theme_layout_flexible_template_style_option |
core/ |
Outputs a representation of the column widths of a flexible layout template row. |
theme_layout_info |
core/ |
Outputs information about a layout. Used in the layout listing page. |
theme_layout_menu_item_arguments_table |
core/ |
Output the arguments table for layout_menu_item_arguments_form(). |
theme_layout_region_inner |
core/ |
Output region content wrapped by tag specified in layout UI. |
theme_layout_reorder_layouts |
core/ |
Turn the rearrange form into a table with table sorting displayed. |
theme_layout_settings_context_table |
core/ |
Output the table for layout_settings_form() contexts. |
theme_layout_template_info |
core/ |
Outputs information about a layout template . Used in the layout template listing page. |
theme_layout_template_option |
core/ |
Outputs an individual option label for selecting a layout. |
theme_link |
core/ |
Returns HTML for a link. |
theme_links |
core/ |
Returns HTML for a set of links. |
theme_link_field |
core/ |
Formats a link field widget. |
theme_link_formatter_link_absolute |
core/ |
Formats a link as an absolute URL. |
theme_link_formatter_link_default |
core/ |
Formats a link. |
theme_link_formatter_link_domain |
core/ |
Formats a link using the URL's domain for it's link text. |
theme_link_formatter_link_label |
core/ |
Formats a link using the field's label as link text. |
theme_link_formatter_link_plain |
core/ |
Formats a link (or its title) as plain text. |
theme_link_formatter_link_separate |
core/ |
Formats a link as separate title and URL elements. |
theme_link_formatter_link_short |
core/ |
Formats a link using "Link" as the link text. |
theme_link_formatter_link_title_plain |
core/ |
Formats a link's title as plain text. |
theme_link_formatter_link_url |
core/ |
Formats a link using an alternate display URL for its link text. |
theme_locale_date_format_form |
core/ |
Returns themed HTML for the locale_date_format_form() form. |
theme_mark |
core/ |
Returns HTML for a marker for new or updated content. |
theme_menu_admin_overview |
core/ |
Returns HTML for a menu title and description for the menu overview page. |
theme_menu_link |
core/ |
Returns HTML for a menu link and submenu. |
theme_menu_local_action |
core/ |
Returns HTML for a single local action link. |
theme_menu_local_actions |
core/ |
Returns rendered HTML for the local actions. |
theme_menu_local_task |
core/ |
Returns HTML for a single local task link. |
theme_menu_local_tasks |
core/ |
Returns HTML for primary and secondary local tasks. |
theme_menu_overview_form |
core/ |
Returns HTML for the menu overview form into a table. |
theme_menu_toggle |
core/ |
Returns rendered HTML for a menu toggle. |
theme_menu_tree |
core/ |
Returns HTML for a wrapper for a menu tree. |
theme_more_help_link |
core/ |
Returns HTML for a "more help" link. |
theme_more_link |
core/ |
Returns HTML for a "more" link, like those used in blocks. |
theme_node_add_list |
core/ |
Returns HTML for a list of available node types for node creation. |
theme_node_admin_overview |
core/ |
Returns HTML for a node type description for the content type admin page. |
theme_node_preview |
core/ |
Returns HTML for a node preview for display during node creation and editing. |
theme_node_preview_banner_form |
core/ |
Returns HTML for node_preview_banner_form(). |
theme_node_recent_block |
core/ |
Returns HTML for a list of recent content. |
theme_node_recent_content |
core/ |
Returns HTML for a recent node to be displayed in the recent content block. |