Token currently doesn't list the site mission as an available token. It would be helpful, for example, to have the site mission in outgoing invite messages (sent by the Invite module). Please review the attached patch.

Comments

Christefano-oldaccount’s picture

StatusFileSize
new12.57 KB

Rerolled for the current Token 5.x-dev.

greggles’s picture

Status: Needs review » Needs work

Your patch in #1 seems to be a little wrong (line ending problem?).

In general I think this is a good idea, but it probably needs to be sent through a check function. phptemplate.engine sends it through filter_xss_admin - see the phptemplate_page function.

Christefano-oldaccount’s picture

StatusFileSize
new1.12 KB

Yikes, just goes to show I should review my own patches. I think one of the files read by diff was read as a binary.

Here's another one which includes the use of filter_xss_admin(). Great suggestion.

Christefano-oldaccount’s picture

Status: Needs work » Needs review
StatusFileSize
new1.12 KB

Oops, let's try that again.

christefano’s picture

Has anyone had a chance to review this yet?

christefano’s picture

Still applies cleanly against 5.x-1.11.

christefano’s picture

Rerolled for the current 5.x-dev.

greggles’s picture

Status: Needs review » Fixed

Thanks, christefano for your persistance on this issue. I've applied it to both 6.x http://drupal.org/cvs?commit=127513 and 5.x http://drupal.org/cvs?commit=127512

Anonymous’s picture

Status: Fixed » Closed (fixed)

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