function flag_actions_system_send_email_action_form in Flag 5
Same name and namespace in other branches
- 6.2 flag_actions.module \flag_actions_system_send_email_action_form()
- 6 flag_actions.module \flag_actions_system_send_email_action_form()
- 7.3 flag_actions.module \flag_actions_system_send_email_action_form()
- 7.2 flag_actions.module \flag_actions_system_send_email_action_form()
File
- ./
flag_actions.module, line 515 - Actions support for the Flag module.
Code
function flag_actions_system_send_email_action_form(&$form, &$flag, $context) {
$form['flag_tip'] = array(
'#type' => 'fieldset',
'#title' => t('Tip'),
'#description' => module_exists('token_actions') ? t('The "Send tokenized e-mail" action is preferable to the "Send e-mail" action you are now using. It provides you with many more tokens to use. This is especially useful when flagging users and comments.') : t('You may wish to enable the <em>Token actions</em> module, which is shipped with the <a href="@token-url">Token</a> module. That module provides a "Send tokenized e-mail" action, which is similar to the "Send e-mail" action you are now using, except it provides you with many more tokens to use. This is especially useful when flagging users and comments.', array(
'@token-url' => 'http://drupal.org/project/token',
)),
'#weight' => -1,
);
return $form;
}