This simple patch allows me to dynamically change the tab titles. (This patch would have been sponsored by http://www.automuseums.org if it would be a paying client but it's my brother's, so :) )

CommentFileSizeAuthor
quicktabs_alter.patch2.44 KBchx

Comments

pasqualle’s picture

any reason why alter the tabs only and not the whole quicktab?

drupal_alter('quicktabs', $quicktabs, $op);
chx’s picture

That works the same for me. I needed to alter the tab titles only.

pasqualle’s picture

Status: Needs review » Fixed

After more thinking about this, I am not comfortable with adding $op parameter to menu wildcard loader which is set to 'edit' as default. So I changed the solution to use drupal_alter after every quicktabs_load..

http://drupal.org/cvs?commit=309712
let me know if you have any problems with this, or any idea for improvement..

pasqualle’s picture

clean up: with 'load arguments' the default value for $op can be 'view'

http://drupal.org/cvs?commit=309744

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gg4’s picture

Is this not configurable through the Quicktabs UI?

Maybe I am missing something really obvious.

gg4’s picture

Status: Closed (fixed) » Active
pasqualle’s picture

Status: Active » Fixed

this is for developers only
the UI option is #303453: Token Support for Quicktab Tab Titles

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.