Download & Extend

Don't output block if no body text

Project:Help Tip
Version:master
Component:Code
Category:bug report
Priority:normal
Assigned:Dave Cohen
Status:closed (fixed)

Issue Summary

small patch to stop sending an empty body in hook_block. useful when you have a php helptip that is only supposed to show to certain people (e.g. when viewing own profile page).

AttachmentSize
patch.helptip930 bytes

Comments

#1

Version:4.7.x-1.x-dev» master
Assigned to:moshe weitzman» Dave Cohen

Does that patch really work? Just scanning it, I'm not sure how it makes a difference.

Attached is a patch (against HEAD), that I think does the job better. Any thoughts? Do you really need this for 4.7?

AttachmentSize
105612.diff.txt 1.46 KB

#2

i was working on a 4.7 site when i had this need ... can't test at the moment. if it looks good to you, i say just commit.

#3

Status:needs review» fixed

Here's an improved patch I will check in momentarily...

#4

and the patch I ment to attach.

AttachmentSize
105612.diff_0.txt 1.8 KB

#5

Status:fixed» closed (fixed)