Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey.
Just got to styling up my user account page on a new site I'm building and noticed that the 'Address book' tab seems to be quite high in the tabs list, its even before edit.
I'm guess its quite easy to change with hook_menu_alter(), But IMHO I get the feeling that by default it should be at least after 'Edit'.
What do people think?
Comment | File | Size | Author |
---|---|---|---|
#1 | 1877444-1.patch | 484 bytes | m.stenta |
#1 | 1877444-1-screenshot.png | 10.95 KB | m.stenta |
Comments
Comment #1
m.stentaAgreed. "View" and "Edit" should be adjacent, for consistency.
The "View" tab has a weight of -10 in user.module, and the "Edit" tab has a default weight of 0.
Out-of-the box, Commerce also adds the "Orders" tab if you have the Commerce Orders UI module enabled. This is provided by Views, and has a default weight of 15. In my opinion, the Address Book tab should come after "Orders".
So I'm proposing a weight of 20. Patch attached (against the current 7.x-2.x branch).
Also attached is a quick screenshot I took of the new arrangement. I think it looks nice... small to big. :-)
Comment #2
ressa CreditAttribution: ressa commentedTalk about timing, I just got the same thought -- to bump the "Address Book" link down at the end.
And you're right, on top of belonging there, it does look nicer visually. I visited your web site and noticed the trend in your own menu links :-) I really liked "Portraits of Movement".
Comment #3
m.stentaThanks @ressa! :-)
Comment #4
jsacksick CreditAttribution: jsacksick commentedhttp://drupalcode.org/project/commerce_addressbook.git/commit/f60617e