sub-topic Helper Functions

List of common helper functions for use in Drupal Bootstrap based themes.

Parent topics

Source includes/common.inc (line 13)

Functions

Name Description
bootstrap_element_smart_description Converts an element description into a tooltip based on certain criteria.
bootstrap_get_cdn_assets Retrieves CDN assets for the active provider, if any.
bootstrap_get_theme_info Return information from the .info file of a theme (and possible base themes).
bootstrap_include Includes a theme file.
bootstrap_setting Retrieves a setting for the current theme or for a given theme.
_bootstrap_add_class Adds a class to an element's render array.
_bootstrap_colorize_button Adds a specific Bootstrap class to color a button based on its text value.
_bootstrap_colorize_text Matches a Bootstrap class based on a string value.
_bootstrap_file_scan_directory Wrapper for the core file_scan_directory() function.
_bootstrap_filter_xss Deprecated Filters HTML to prevent cross-site-scripting (XSS) vulnerabilities.
_bootstrap_get_attributes Retrieves an element's "attributes" array.
_bootstrap_get_base_themes Returns a list of base themes for active or provided theme.
_bootstrap_get_classes Retrieves an element's "class" array.
_bootstrap_glyphicon Returns a specific Bootstrap Glyphicon as a render array.
_bootstrap_glyphicons Returns a list of available Bootstrap Glyphicons.
_bootstrap_glyphicons_supported Determine whether or not Bootstrap Glyphicons can be used.
_bootstrap_icon Returns a specific Bootstrap Glyphicon as rendered HTML markup.
_bootstrap_iconize_button Adds an icon to button element based on its text value.
_bootstrap_iconize_text Matches a Bootstrap Glyphicon based on a string value.
_bootstrap_is_button Determine whether a specific element is a button.
_bootstrap_is_simple_string Determines if a string of text is considered "simple".
_bootstrap_preprocess_theme_suggestion Invokes a specific suggestion's preprocess functions.
_bootstrap_process_theme_suggestion Invokes a specific suggestion's process functions.
_bootstrap_remove_class Removes a class from an element's render array.
_bootstrap_use_path_breadcrumbs Determines if the Path Breadcrumbs module theme function should be used.