| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * @file
- * Stub file for "block" theme hook [pre]process functions.
- */
- /**
- * Pre-processes variables for the "block" theme hook.
- *
- * See template for list of available variables.
- *
- * @see block.tpl.php
- *
- * @ingroup theme_preprocess
- */
- function bootstrap_preprocess_block(&$variables) {
- // Use a bare template for the page's main content.
- if ($variables['block_html_id'] == 'block-system-main') {
- $variables['theme_hook_suggestions'][] = 'block__no_wrapper';
- }
- $variables['title_attributes_array']['class'][] = 'block-title';
- }
- /**
- * Processes variables for the "block" theme hook.
- *
- * See template for list of available variables.
- *
- * @see block.tpl.php
- *
- * @ingroup theme_process
- */
- function bootstrap_process_block(&$variables) {
- // Drupal 7 should use a $title variable instead of $block->subject.
- // Don't override an existing "title" variable, some modules may already it.
- if (!isset($variables['title'])) {
- $variables['title'] = $variables['block']->subject;
- }
- }
|