Skip to content

Instantly share code, notes, and snippets.

@robertmagnusson
Created February 5, 2014 09:05
Show Gist options
  • Save robertmagnusson/8819722 to your computer and use it in GitHub Desktop.
Save robertmagnusson/8819722 to your computer and use it in GitHub Desktop.
Dölja blocktitlar via template.php
/**
* 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