root / drupal7 / sites / all / themes / bootstrap / theme / block / block.vars.php @ 87dbc3bf
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* block.vars.php
|
5 |
*/
|
6 |
|
7 |
/**
|
8 |
* Implements hook_preprocess_block().
|
9 |
*/
|
10 |
function bootstrap_preprocess_block(&$variables) { |
11 |
// Use a bare template for the page's main content.
|
12 |
if ($variables['block_html_id'] == 'block-system-main') { |
13 |
$variables['theme_hook_suggestions'][] = 'block__no_wrapper'; |
14 |
} |
15 |
$variables['title_attributes_array']['class'][] = 'block-title'; |
16 |
} |
17 |
|
18 |
/**
|
19 |
* Implements hook_process_block().
|
20 |
*/
|
21 |
function bootstrap_process_block(&$variables) { |
22 |
// Drupal 7 should use a $title variable instead of $block->subject.
|
23 |
$variables['title'] = $variables['block']->subject; |
24 |
} |