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_field_ui_view_modes |
core/ |
Returns HTML for the entity display mode table. |
theme_file |
core/ |
Returns HTML for a file upload form element. |
theme_file_audio |
core/ |
Returns HTML for displaying an HTML5 <audio> tag. |
theme_file_display_order |
core/ |
Returns HTML for a file display's display order table. |
theme_file_download_link |
core/ |
Copy of theme_file_link() for linking to the file download URL. |
theme_file_formatter_table |
core/ |
Returns HTML for a file attachments table. |
theme_file_icon |
core/ |
Returns HTML for an image with an appropriate icon for the given file. |
theme_file_link |
core/ |
Returns HTML for a link to a file. |
theme_file_managed_file |
core/ |
Returns HTML for a managed file element. |
theme_file_type_overview |
core/ |
Returns HTML for the file type overview page. |
theme_file_upload_help |
core/ |
Returns HTML for help text based on file upload validators. |
theme_file_video |
core/ |
Returns HTML for displaying an HTML5 <video> tag. |
theme_file_widget |
core/ |
Returns HTML for an individual file upload widget. |
theme_file_widget_multiple |
core/ |
Returns HTML for a group of file upload widgets. |
theme_filter_admin_format_filter_order |
core/ |
Returns HTML for a text format's filter order form. |
theme_filter_admin_overview |
core/ |
Returns HTML for the text format administration overview form. |
theme_filter_caption |
core/ |
Returns HTML for a captioned item, usually an image. |
theme_filter_format_editor_image_form |
core/ |
|
theme_filter_guidelines |
core/ |
Returns HTML for guidelines for a text format. |
theme_filter_tips |
core/ |
Returns HTML for a set of filter tips. |
theme_filter_tips_more_info |
core/ |
Returns HTML for a link to the more extensive filter tips. |
theme_form |
core/ |
Returns HTML for a form. |
theme_form_element |
core/ |
Returns HTML for a form element. |
theme_form_element_label |
core/ |
Returns HTML for a form element label and required marker. |
theme_form_required_marker |
core/ |
Returns HTML for a marker for required form elements. |
theme_get_registry |
core/ |
Gets the theme registry. |
theme_get_setting |
core/ |
Retrieves a setting for the current theme or for a given theme. |
theme_get_suggestions |
core/ |
Generate an array of suggestions from path arguments. |
theme_has_color_support |
core/ |
Detect if a theme has support for the Color module. |
theme_has_settings |
core/ |
Detect if a theme has any theme settings. |
theme_head_tag |
core/ |
Returns HTML for a generic HTML tag with attributes. |
theme_help |
core/ |
Returns HTML for a help element. |
theme_hidden |
core/ |
Returns HTML for a hidden form element. |
theme_html_date |
core/ |
Returns html5 markup for a date input form element. |
theme_html_datetime |
core/ |
Returns html5 markup for a combined date and time form element. |
theme_html_time |
core/ |
Returns html5 markup for a time input form element. |
theme_icon |
core/ |
Returns HTML for an inline-icon. |
theme_image |
core/ |
Returns HTML for an image. |
theme_image_anchor |
core/ |
Returns HTML for a 3x3 grid of checkboxes for image anchors. |
theme_image_button |
core/ |
Returns HTML for an image button form element. |
theme_image_crop_summary |
core/ |
Returns HTML for a summary of an image crop effect. |
theme_image_formatter |
core/ |
Returns HTML for an image field formatter. |
theme_image_resize_summary |
core/ |
Returns HTML for a summary of an image resize effect. |
theme_image_rotate_summary |
core/ |
Returns HTML for a summary of an image rotate effect. |
theme_image_scale_summary |
core/ |
Returns HTML for a summary of an image scale effect. |
theme_image_style |
core/ |
Returns HTML for an image using a specific image style. |
theme_image_style_effects |
core/ |
Returns HTML for a listing of the effects within a specific image style. |
theme_image_style_list |
core/ |
Returns HTML for the page containing the list of image styles. |
theme_image_style_preview |
core/ |
Returns HTML for a preview of an image style. |
theme_image_widget |
core/ |
Returns HTML for an image field widget. |