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
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
Comment #1
scotjam commentedThat would be really handy, if its at all possible.
Comment #2
brisath commentedI agree. Subscribing.
Comment #3
Anonymous (not verified) commentedhi,
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 ...
Comment #4
Anonymous (not verified) commentedwow, 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 :)
Comment #5
fizk commentedDuplicate 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.