function mailchimp_campaign_campaign_form_validate in Mailchimp 7.5
Same name and namespace in other branches
- 7.2 modules/mailchimp_campaign/mailchimp_campaign.admin.inc \mailchimp_campaign_campaign_form_validate()
- 7.3 modules/mailchimp_campaign/includes/mailchimp_campaign.admin.inc \mailchimp_campaign_campaign_form_validate()
- 7.4 modules/mailchimp_campaign/includes/mailchimp_campaign.admin.inc \mailchimp_campaign_campaign_form_validate()
Validation callback for mailchimp_campaign_campaign_form().
File
- modules/
mailchimp_campaign/ includes/ mailchimp_campaign.admin.inc, line 266 - Administration pages for mailchimp_campaign module.
Code
function mailchimp_campaign_campaign_form_validate($form, &$form_state) {
if (!valid_email_address($form_state['values']['from_email'])) {
form_set_error('from_email', t('Please provide a valid From email address.'));
}
}