Organizes common and helpful page template snippets that can be re-used for multiple web sites and themes.
Snippets include:
| Name | Description |
|---|---|
| theme_helper_snippets_init | Implementation of hook_init(). |
| theme_helper_snippets_menu | Implementation of hook_menu(). |
| theme_helper_snippets_preprocess_node | Implementation of hook_preprocess_node(). |
| theme_helper_snippets_preprocess_page | Implementation of hook_preprocess_page(). |
| _theme_helper_snippets_body_class_active_trail | Add active trails link attribute classes to $body_classes. |
| _theme_helper_snippets_body_class_role | Add user's roles based class name to $body_classes. |
| _theme_helper_snippets_body_class_theme | Add theme based class name to $body_classes. |
| _theme_helper_snippets_css_suggestions_by_path | Load css files based on the current path. |
| _theme_helper_snippets_css_suggestions_by_path_examples | Get examples of all css suggestion files for the current page. |
| _theme_helper_snippets_css_suggestions_by_role | Load css files based on the active user's roles. |
| _theme_helper_snippets_css_suggestions_by_role_examples | Get examples of all css suggestion files for all roles. |
| _theme_helper_snippets_footer_copyright_year | Replace YYYY in the footer message with the current year. |
| _theme_helper_snippets_footer_login | Append login link to the footer message. |
| _theme_helper_snippets_format_suggestion | Format an suggestion by removing special characters and spaces and optionally adding a prefix to the returned string. |
| _theme_helper_snippets_get_active_trail_info | Get active trail info, including mlids, nids, ids, and classes, in an associative array. |
| _theme_helper_snippets_has_staging_message | Check if the current server is staging message and return the warning message. |
| _theme_helper_snippets_page_suggestions_by_class | Add template suggestions, to the $template_files array, for active trails menu item attribute classes. |
| _theme_helper_snippets_page_suggestions_by_id | Add template suggestions, to the $template_files array, for active trails menu item attribute ids. |
| _theme_helper_snippets_page_suggestions_by_path | Add template suggestions, to the $template_files array, based on a node's alias. |
| _theme_helper_snippets_page_suggestions_by_path_examples | Examples of template suggestions based any path. |
| _theme_helper_snippets_page_suggestions_by_role | Add template suggestions, to the $template_files array, based on the current user's roles. |
| _theme_helper_snippets_page_suggestions_by_role_examples | Examples of template suggestions for all user roles. |
| _theme_helper_snippets_staging_server_warning | Add staging message to page template variables. |