The standard technique to hide the title block (by placing in the title) doesn't work anymore.

The patch allows the content "" to be placed as block subject without passing through check_plain, any other string will be controlled by check_plain.

Comments

adamgerthel’s picture

Status: Needs work » Active

The patch hides the title, but not the h2

Update: Actually, the patch doesn't even work with none, it simply adds "none" in the h2 (see attached screenshot) no matter what the title is

adamgerthel’s picture

Status: Active » Needs work
StatusFileSize
new14.61 KB
unic’s picture

Version: 7.x-3.3 » 7.x-3.4
Status: Active » Needs work
StatusFileSize
new592 bytes

Just changed patch from header to work with <none>

unic’s picture

Status: Needs work » Closed (works as designed)

Now I think it's not necessary. Hiding generated block with <none> works well.

danny englander’s picture

I needed this patch as <none> set on the block title configuration page was not working. The patch fixed the issue, now <none> does what it's supposed to do.

glekli’s picture

Issue summary: View changes

An equal sign is missing in the patch. The assignment should look like so, shouldn't it?

$block['subject'] = $qt['#title'] == '<none>' ? '' : check_plain($qt['#title']);