how do I change the description in the block
dafeder - January 11, 2008 - 03:09
| Project: | Request Invitation |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | buddhika |
| Status: | active |
Description
Hi, I am not a theming or module whiz. I am trying to figure out how to edit the request invitation block - the descriptive text, the size of the text input, and the text on the submit button. I can do it by editing the theme itself but it seems like there should be a way to set these things via the theme or drupal config screens. Am I missing something?
Thanks

#1
Hi dafeder,
To change the description of the block follow this.
At the top of "requestinvitation.module" script there are two lines like this.
//Give a description about your site here
$description = "You can give a brief description of your site or what you intended to do through this module here." ;
Replace "You can give a brief description of your site or what you intended to do through this module here." with your welcome blurb.
To edit the theme you will have to use your own theme as only a general theme is given with the module.
Cheers,
Laknath
#2
I don't like having to edit the module and would prefer a setting. Until that happens, the strings should at least be translatable with either the Locale module or the method described at #131061. This patch does that.
#3
Hi christefano,
Thanks for the patch. It's committed.
#4
Automatically closed -- issue fixed for two weeks with no activity.
#5
How is it fixed? It doesn't seem to be in the downloadable versions of the files??
If it is truly a description of the site - could it perhaps default to the site slogan or mission if nothing else is defined?
#6
Oops...Forgot to make a new release :-) Thanks for reminding me.
Added for a new release and should be downloadable within few hours.
#7
Automatically closed -- issue fixed for two weeks with no activity.
#8
Just for the record, this was committed with the message "Security: ..." which implies that it fixes a security bug. In fact, it fixes no security bugs.
@buddhika - if you have questions about writing secure code please read the handbook http://drupal.org/writing-secure-code if there are areas which you are still unsure about please ask the security team.
#9
Now description text can be modified from within the module in 5.x-1.1 release.
Thanks for pointing this out.
#10
Great! Thanks for this great module! greetings, Martijn
#11
Yes, but, you are now using t() inappropriately and have introduced an xss security hole. User entered data should not be simply passed through to end users. In this case, I suggest that you get rid of the t() function in t(getDescription()); and instead use filter_xss_admin(get_description());
Please do carefully read the writing secure code section of the handbook http://drupal.org/writing-secure-code