Created
February 5, 2014 09:05
-
-
Save robertmagnusson/8819722 to your computer and use it in GitHub Desktop.
Dölja blocktitlar via template.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements template_preprocess_block(). | |
*/ | |
function themename_preprocess_block(&$variables) { | |
// Add a title class to the block title. | |
$variables['title_attributes_array']['class'] = 'block-title'; | |
// Alter the title for some blocks. | |
// Manually configured here, because Features doesn't export block configurations. | |
switch ($variables['block']->bid) { | |
case 'name-of-block': | |
$variables['block']->subject = ''; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment