There nothing such ugly than displaying a title on a page with no content below, so I made a quick patch that allow site admin to hide tables titles which does not have content in user's favorites nodes page.
Example, if a user has no favorite page, his page will show:
Favorites Pages for User
Favorites Story for User
story 1..
story 2..
In this case, "favorites Pages" is useless.
Here is the patch, which allow site admin to keep default behavior.
| Comment | File | Size | Author |
|---|---|---|---|
| favorite_nodes.module-5.x-1.3-hide_empty_titles.patch | 1.98 KB | pounard |
Comments
Comment #1
kbahey commentedHave you tested this?
Are you sure you want to use this here?
variable_get(FAVORITE_NODES_VIEW_IN_PROFILE, 1),Anyway, I fixed it and made a few changes, and committed it to the -dev version for both D6 and D5.
So, wait for 24 hours, then download the -dev release and test, after you do a disable and uninstall.
Report back if there are issues.
Comment #2
pounardI tested this because I use it. This is a bad typo error, sorry :)Maybe I forgot a test case before sending the patch!
Anyway, thanks a lot!
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.