Add option to change the title of the ecard form

austintnacious - February 27, 2009 - 03:21
Project:ecard
Version:6.x-1.6
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Sweet module!

Would you consider making the title of the ecard form (currently "Send this ecard") something that admin users can change.

For example, I'd like to reword the title / link to display the form read something like "Send an invitation"

Thanks!

#1

Kars-T - February 27, 2009 - 10:02

Hi,

all strings should run through the t() function. So you could use the String Overrides module.

Or you could use the formapi
Break out any markup into a separate theme function. This is the preferred method if the markup has any degree of complication. it is accomplished by creating a theme function with theme_ prepended to the name of the form ID that is to be themed. in cases where you want to use the same theming function for more than one form, you can include the optional callback arg in drupal_get_form--in which case the third arg of drupal_get_form will be a string containing the name of the callback function which the form building code will call, and the theming function will be theme_ prepended to the name of the callback.

Should be "theme_ecard_form()".

For internationalisation it can be difficult but formapi could help you.

Maybe in some release I try to setup all strings als variables. But I need to implement i18n_strings first.

#2

Kars-T - November 12, 2009 - 14:45
Status:active» fixed

Please take a look at the http://drupal.org/project/invite module. Maybe this is a better fit for you. And the string could be changed by http://drupal.org/project/stringoverrides

#3

System Message - November 26, 2009 - 14:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.