function tdomf_widget_notifyme_validate($args, $preview) { extract($args); if (!$preview) { if (tdomf_widget_notifyme_show_email_input($tdomf_form_id)) { if (isset($notifyme) && !tdomf_check_email_address($notifyme_email)) { return $before_widget . __("You must specify a valid email address to send the notification to.", "tdomf") . $after_widget; } } } return NULL; }
function tdomf_widget_subscribe_to_comments_validate($args, $preview) { $options = tdomf_widget_subscribe_to_comments_get_options($args['tdomf_form_id']); extract($args); if (!$preview) { if ((tdomf_widget_notifyme_show_email_input($tdomf_form_id) || $options['show_email_field']) && ($options['always_subscribe'] || $subscribe_to_comments)) { if (isset($subscribe_to_comments_email) && !tdomf_check_email_address($subscribe_to_comments_email)) { return $before_widget . __("You must specify a valid email address to send the comment notifications to.", "tdomf") . $after_widget; } } } return NULL; }