Skip to content

Commit

Permalink
Merge pull request #26 from SU-SWS/BASIC-1719
Browse files Browse the repository at this point in the history
Unset block subject. Fixes empty H2 element on icon blocks
  • Loading branch information
sherakama committed Jan 25, 2016
2 parents 5db4fba + f6cd334 commit 22232a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stanford_bean_types.module
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function stanford_bean_types_block_view_alter(&$data, $block) {
// If the block is an icon block we want to remove the subject.
if ($block->module == "bean") {
if ($data["content"]["bean"][$block->delta]["#bundle"] == "stanford_icon_block") {
$data["subject"] = "<none>";
$data["subject"] = "";
}
}

Expand Down

0 comments on commit 22232a3

Please sign in to comment.