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

scotjam’s picture

That would be really handy, if its at all possible.

brisath’s picture

I agree. Subscribing.

Anonymous’s picture

Title: Not just view tab but... » edit tab with tokens?

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 ...

Anonymous’s picture

Title: edit tab with tokens? » tweak other tabs ...

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 :)

fizk’s picture

Status: Active » Closed (duplicate)

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.