function domain_content_process_nodes in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain_content/domain_content.module \domain_content_process_nodes()
- 7.3 domain_content/domain_content.module \domain_content_process_nodes()
Process the form submission.
This callback works for the normal operations callback.
2 string references to 'domain_content_process_nodes'
- domain_content_admin in domain_content/
domain_content.admin.inc - Content admin page callback.
- domain_content_form_node_admin_content_alter in domain_content/
domain_content.module - Allow domain assignment to be made from the default content form.
File
- domain_content/
domain_content.module, line 261 - Editorial overview module.
Code
function domain_content_process_nodes($form, &$form_state) {
if ($form_state['values']['operation'] != 'domain') {
return;
}
$options = array();
$options['domain_site'] = FALSE;
if ($form_state['values']['domain_site']) {
$options['domain_site'] = TRUE;
}
$options['domain_id'] = array_filter($form_state['values']['domains']);
$nids = array_filter($form_state['values']['nodes']);
$options['behavior'] = $form_state['values']['behavior'];
domain_content_update_nodes($nids, $options);
}