Don't output block if no body text
moshe weitzman - December 28, 2006 - 15:49
| Project: | Help Tip |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Dave Cohen |
| Status: | closed |
Description
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).
| Attachment | Size |
|---|---|
| patch.helptip | 930 bytes |

#1
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?
#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
Here's an improved patch I will check in momentarily...
#4
and the patch I ment to attach.
#5