Closed (fixed)
Project:
Book Child Order
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2015 at 15:10 UTC
Updated:
28 Oct 2015 at 15:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damienmckennaThis patch hides the save button if there are no child pages.
Comment #2
joachim commentedThanks for the patch!
It's a while since I've looked at this module, but if the book page has no children, then isn't the whole form pointless? In which case, wouldn't it be better to hide the tab completely?
Comment #3
damienmckennaThe only problem I can see with that is that the $node doesn't track sibling objects, so we'd have to use e.g. book_children() or book_menu_subtree_data(). Something like this?
Comment #4
damienmckennaFYI the patch in #3 only shows the tab if there's more than one subpage, there's no point in showing it if there's only one subpage.
Comment #5
joachim commentedCommitted. Sorry for the delay, and thanks again for the patch!