This patch does three things), but they are closely related.

1) admin/banner/edit/1 becomes admin/banner/1/edit. Same thing happens for admin/banner/view/1. This is necessary to introduce local tabs, and it conforms to the node/1/edit paths.

2) There were already some tab-like links in admin/banner/edit/1 and view/1. These are replaced by normal Drupal-style tabs for view and edit.

3) This patch assumes the previous patches have been applied. It shuffles some _menu() stuff around, does not define some paths unless they are needed (for performance), and fixes one instance of a missing t().

CommentFileSizeAuthor
banner.4.patch4.42 KBnjivy

Comments

jeremy’s picture

In combination with your earlier patches, this looks quite good. However, I notice one quirk. If you go to 'administer > banners', and thus are on "view", there is a submenu 'administer > banners > banner' that looks out of place. Clicking it accomplishes nothing. I suppose it's okay when you are viewing or editing a specific banner, but even then I don't think it is necessary. I recommend that this submenu be removed - the tabs provide sufficient navigation.

jeremy’s picture

Applied -- removed extra link as mentioned above. Thanks. :)

Anonymous’s picture