system_send_email_action_validate
function system_send_email_action_validate
system_send_email_action_validate($form, $form_state)
Validate system_send_email_action form submissions.
File
- modules/system/system.module, line 3191
- Configuration system that lets administrators modify the workings of the site.
Code
function system_send_email_action_validate($form, $form_state) { $form_values = $form_state['values']; // Validate the configuration form. if (!valid_email_address($form_values['recipient']) && strpos($form_values['recipient'], ':mail') === FALSE) { // We want the literal %author placeholder to be emphasized in the error message. form_set_error('recipient', t('Enter a valid email address or use a token e-mail address such as %author.', array('%author' => '[node:author:mail]'))); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.module/function/system_send_email_action_validate/7.x