--- C:/Users/kenorb/AppData/Local/Temp/token_actions.module-revBASE.svn000.tmp.module	Fri Jul 17 16:37:11 2009
+++ token_actions.module	Fri Jul 17 16:36:31 2009
@@ -112,6 +112,18 @@
   return $form;
 }
 
+/**
+ * Validate token_actions_send_email_action form submissions.
+ */
+function token_actions_send_email_action_validate($form, $form_state) {
+  $form_values = $form_state['values'];
+  // Validate the configuration form.
+  if (!valid_email_address($form_values['recipient']) && $form_values['recipient'] != '%author') {
+    // We want the literal %author placeholder to be emphasized in the error message.
+    form_set_error('recipient', t('Please enter a valid email address or %author.', array('%author' => '%author')));
+  }
+}
+
 function token_actions_send_email_action_submit($form, &$form_state) {
   // Process the HTML form to store configuration. The keyed array that
   // we return will be serialized to the database.
