Posted by pushka on August 16, 2009 at 7:15pm
Jump to:
| Project: | Tab Name Tweaker |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
Hey nice module! Now it would be great if we could tweak all tab names...
Probably a lot more work, but I thought I'd ask!
Cheers
Comments
#1
That would be really handy, if its at all possible.
#2
I agree. Subscribing.
#3
hi,
i'm eagerly looking for a solution to rename the "edit"-tab (in most occasions i think) to "edit content type, cause i think its much more intuitive for users when they know what they are going to edit, especially in more complex environments with lots of editing possibilities.
Unfortunately lacking still the needed coding skills for drupal, i wonder if it would be possible to enhance your module with a more general approach towards tabs. I think using tokens for the content type or any other stuff would be benefitial as well.
So, filling in "Edit %content-type" or things like that would deliver that.
Ok, quite complex i think. ;)
Cheers
Bernd
edit: ups, just saw in your module code that tokens are already enabled. So it can't be that far ...
#4
wow, this was easy :)
i simply replaced the "view" in your module code with "edit", and it seems to work now for me as expected.
from line 7 in .module:
function tabname_tweaker_menu_alter(&$items) {
$items['node/%node/edit']['title callback'] = 'tabname_tweaker_title_callback';
$items['node/%node/edit']['title arguments'] = array(1);
}
Of course this was really dirty!
Don't know it this will work for other tabs/paths as easy as this.
But as a quick workaround, people could just copy the module, change those pathes as i did and save it as a new, specialized module.
thanx so far :)
#5
Duplicate of #875738: Patch to add the ability to also rename "Edit" tab per node type.
bernadotte, token support exists in 6.x-1.0 and 7.x-1.0.