function mass_contact_admin_settings_validate in Mass Contact 5.2
Validates the administration settings form.
Parameters
form_id: The unique string identifying the form.
form_values: The array of values returned by the form.
File
- ./
mass_contact.module, line 665 - This is the main code file for the Mass Contact module. This module enables users to contact multiple users through selected roles.
Code
function mass_contact_admin_settings_validate($form_id, $form_values) {
if (!empty($form_values['mass_contact_default_sender_name'])) {
if (empty($form_values['mass_contact_default_sender_email'])) {
form_set_error('mass_contact_default_sender_email', t('If you are going to specify default user settings, you must specify both a user name and a user e-mail address.'));
}
}
if (!empty($form_values['mass_contact_default_sender_email'])) {
if (empty($form_values['mass_contact_default_sender_name'])) {
form_set_error('mass_contact_default_sender_name', t('If you are going to specify default user settings, you must specify both a user name and a user e-mail address.'));
}
}
}