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).

Comments

Dave Cohen’s picture

Version: 4.7.x-1.x-dev » master
Assigned: moshe weitzman » Dave Cohen
StatusFileSize
new1.46 KB

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?

moshe weitzman’s picture

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.

Dave Cohen’s picture

Status: Needs review » Fixed

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

Dave Cohen’s picture

StatusFileSize
new1.8 KB

and the patch I ment to attach.

Anonymous’s picture

Status: Fixed » Closed (fixed)