Display variables that can be used in a static/SMS/Mail/systemmessage

Registered by Lars Åge Kamfjord

We should display all variables that can be used in the current page below the textarea. I.e. %%FIRSTNAME%% in mails, %%PRICE%% in systemmessage unpaid_tickets, etc.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Low
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Obsolete
Series goal:
Accepted for lancms1
Implementation:
Unknown
Milestone target:
milestone icon beta1
Completed by
Mathias Bøhn Grytemark

Related branches

Sprints

Whiteboard

I'm thinking something like this:
inc/shared_config.php
$allowed_variables['mail']['FIRSTNAME'] = lang("Displays the first name of the user that recieves the mail");
$allowed_variables['mail']['LASTNAME'] = lang("Displays the last name of the user that recieves the mail");

in module/mail/mail.php
<textarea>whatever</textarea>
display_allowed_variables("mail");

with a foreach.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.