3 replies [Last post]
Axel_Pressbutton's picture
Offline
Joined: 11/30/2008
Juice: 123
Was this information Helpful?

Hi all,

Out of interest, does anyone know if there's another way for me to change the title of the "Files" tab that appears in a users profile for when they've purchsed files via UC?

I've found where to manually change this in line 70 of uc_file.module but not happy about doing this to a module directly.

Thanks for any help

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: File Downloads - naming of tab in user account

You could use a module like String Overrides. Out of curiosity, what do you want to change it to?

Axel_Pressbutton's picture
Offline
Joined: 11/30/2008
Juice: 123
_

Hi Ryan,

Thanks for getting back to me so soon after Drupalcon - I couldn't make it to the one in the US but will hopefully get along to the next one in Europe.

I wanted to rename the "Files" tab to something more product specific - in this case it's going to be "Purchased plans". We only have one type of file product being sold/downloaded and by changing the name we feel it's a bit more user friendly.

Obviously the wording is going to have to be changed in several other places as well...Do modules such as String Override have much impact on performance?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: _

I don't believe they do, since I think they work through a configuration array instead of through database queries. Definitely give it a look. The alternative on D6 might be to use hook_menu_alter() to change the tab's title.