label of the local task used to create related content: make dynamic

wrb123 - October 29, 2008 - 13:58
Project:Nodereferrer Create
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

hello,
Im trying to figure out a way to make the label of the local task used to create related content dynamic. In admin.php we have this code:

$form['nodereferrer_create_labels']['nodereferrer_create_localtask_label'] = array(
'#type' => 'textfield',
'#title' => t('Local task label for creating new content'),
'#default_value' => variable_get('nodereferrer_create_localtask_label', 'Create related content'),
'#description' => t('This is the label of the local task used to create related content'),
);

All 6 other entries (for the drop-down menu for creation) have @type in their default strings, which is incredibly useful. however, i have tried changing the entry on the nodereferrer create admin page to use the @type wildcard, but this for some reason does not work.

the tab on the page ends up saying "Create @type", but i obviously dont want "@type" to actually show up for the end user. When one type is a child (TypeB) of a parent (TypeA), it would greatly enhance the usability of my site if I could make the Tab the user sees at the top of the TypeA node to say "Create TypeB". I'm not sure why this functionality isn't available. Is there something I can change in the code to make it work, or is there a specific way I can overwrite the value appearing in my node-typeA.tpl.php? I would greatly appreciate some help with this.

thanks,
Bill

 
 

Drupal is a registered trademark of Dries Buytaert.