function mass_contact_admin_edit_validate in Mass Contact 5.2
Same name and namespace in other branches
- 5 mass_contact.module \mass_contact_admin_edit_validate()
- 6 mass_contact.module \mass_contact_admin_edit_validate()
- 7 mass_contact.admin.inc \mass_contact_admin_edit_validate()
Validates the submission of the category add/edit page.
Parameters
form_id: The unique string identifying the form.
form_values: The array of values returned by the form.
File
- ./
mass_contact.module, line 366 - 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_edit_validate($form_id, $form_values) {
$recipients = $form_values['recipients'];
foreach ($recipients as $checkr) {
if ($checkr > 1) {
return;
}
}
form_set_error('recipients', t('You must check one or more recipients.'));
}