Created
July 18, 2013 21:15
-
-
Save zachattack/6033158 to your computer and use it in GitHub Desktop.
Unset a block title in Drupal 7 with preprocess.
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
function YOURTHEME_preprocess_block(&$variables, $hook) { | |
// Unset the block titles in the region of choice. | |
if ($variables['block']->region == 'region-you-target') { | |
unset($variables['block']->subject); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment