function mass_contact_taxonomy_admin_edit_submit in Mass Contact 7
Add/edit form submit callback.
Returns the piece of data that will be saved to mass_contact table in recepients field.
Parameters
array $form: A nested array of form elements that comprise the form.
array $form_state: A keyed array containing the current state of the form.
Return value
array An array of term IDs.
1 string reference to 'mass_contact_taxonomy_admin_edit_submit'
File
- plugins/
mass_contact_taxonomy.inc, line 214
Code
function mass_contact_taxonomy_admin_edit_submit(array $form, array &$form_state) {
$terms = array();
if (!empty($form_state['values']['recipients']['mass_contact_taxonomy'])) {
foreach ($form_state['values']['recipients']['mass_contact_taxonomy'] as $term_values) {
$terms += array_filter($term_values);
}
}
return $terms;
}