You are here

function _ad_actions_email_tokens_form in Advertisement 6.3

Same name and namespace in other branches
  1. 6.2 actions/ad_actions.module \_ad_actions_email_tokens_form()
  2. 7 actions/ad_actions.module \_ad_actions_email_tokens_form()

A helper function for building ad action forms.

2 calls to _ad_actions_email_tokens_form()
ad_actions_send_email_action_after_form in actions/ad_actions.module
Return a form definition so the advanced email action can be configured.
ad_actions_send_email_action_before_form in actions/ad_actions.module
Return a form definition so the advanced email action can be configured.

File

actions/ad_actions.module, line 407
Enable ad triggers and actions.

Code

function _ad_actions_email_tokens_form($context) {
  $form = array();
  $form['help'] = array(
    '#type' => 'fieldset',
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#title' => t('Placeholder tokens'),
    '#description' => t("The following placeholder tokens can be used in to generate the URL path. Some tokens may not be available, depending on the context in which the action is triggered."),
  );
  $form['help']['tokens'] = array(
    '#value' => theme('token_help', 'all'),
  );
  return $form;
}