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_number |
core/ |
Returns HTML for a number form element. |
theme_options |
core/ |
Theme an options element. |
theme_options_none |
core/ |
Returns HTML for the label for the empty value for options that are not required. |
theme_pager |
core/ |
Returns HTML for a query pager. |
theme_pager_first |
core/ |
Returns HTML for the "first page" link in a query pager. |
theme_pager_last |
core/ |
Returns HTML for the "last page" link in query pager. |
theme_pager_link |
core/ |
Returns HTML for a link to a specific query result page. |
theme_pager_next |
core/ |
Returns HTML for the "next page" link in a query pager. |
theme_pager_previous |
core/ |
Returns HTML for the "previous page" link in a query pager. |
theme_password |
core/ |
Returns HTML for a password form element. |
theme_path_bulk_update_form |
core/ |
Returns HTML for the Path bulk update page. |
theme_progress_bar |
core/ |
Returns HTML for a progress bar. |
theme_radio |
core/ |
Returns HTML for a radio button form element. |
theme_range |
core/ |
Returns HTML for a range form element. |
theme_render_template |
core/ |
Renders a system default template, which is essentially a PHP template. |
theme_search |
core/ |
Returns HTML for a search form element. |
theme_select |
core/ |
Returns HTML for a select form element. |
theme_simpletest_result_summary |
core/ |
Returns HTML for the summary status of a simpletest result. |
theme_simpletest_test_table |
core/ |
Returns HTML for a test list generated by simpletest_test_form() into a table. |
theme_status_messages |
core/ |
Returns HTML for status and/or error messages, grouped by type. |
theme_status_report |
core/ |
Returns HTML for the status report. |
theme_submit |
core/ |
Returns HTML for a submit button form element. |
theme_system_admin_index |
core/ |
Returns HTML for the output of the dashboard page. |
theme_system_modules_fieldset |
core/ |
Returns HTML for the modules form. |
theme_system_modules_incompatible |
core/ |
Returns HTML for a message about incompatible modules. |
theme_system_modules_uninstall |
core/ |
Returns HTML for a table of currently disabled modules. |
theme_system_powered_by |
core/ |
Returns HTML for the Powered by Backdrop text. |
theme_system_settings_form |
core/ |
Returns HTML for a system settings form. |
theme_system_themes_page |
core/ |
Returns HTML for the Appearance page. |
theme_table |
core/ |
Returns HTML for a table. |
theme_tableselect |
core/ |
Returns HTML for a table with radio buttons or checkboxes. |
theme_tablesort_indicator |
core/ |
Returns HTML for a sort icon. |
theme_task_list |
core/ |
Returns HTML for a list of maintenance tasks to perform. |
theme_taxonomy_overview_terms |
core/ |
Returns HTML for a terms overview form as a sortable list of terms. |
theme_taxonomy_vocabulary_description |
core/ |
Returns HTML for the vocabulary description. |
theme_taxonomy_vocabulary_name |
core/ |
Returns HTML for the vocabulary human readable name, and its machine name. |
theme_tel |
core/ |
Returns HTML for a tel form element. |
theme_test_exit |
core/ |
Implements hook_exit(). |
theme_test_hook_init_page_callback |
core/ |
Menu callback for testing themed output generated in hook_init(). |
theme_test_init |
core/ |
Implements hook_init(). |
theme_test_menu |
core/ |
Implements hook_menu(). |
theme_test_preprocess_page |
core/ |
Implements hook_preprocess_page(). |
theme_test_system_info_alter |
core/ |
Implements hook_system_info_alter(). |
theme_test_system_theme_info |
core/ |
Implements hook_system_theme_info(). |
theme_test_template_test_page_callback |
core/ |
Menu callback for testing template overriding based on filename. |
theme_test_theme |
core/ |
Implements hook_theme(). |
theme_textarea |
core/ |
Returns HTML for a textarea form element. |
theme_textfield |
core/ |
Returns HTML for a textfield form element. |
theme_text_format_wrapper |
core/ |
Returns HTML for a text format-enabled form element. |
theme_theme_test |
core/ |
Returns HTML for the 'theme_test' theme hook used by tests. |