Index: domain.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.admin.inc,v
retrieving revision 1.33
diff -u -p -r1.33 domain.admin.inc
--- domain.admin.inc	4 Aug 2009 14:17:09 -0000	1.33
+++ domain.admin.inc	15 Aug 2009 11:29:40 -0000
@@ -752,6 +752,20 @@ function domain_batch_form($form_state, 
     '#type' => 'markup',
     '#value' => theme('domain_batch_title', $batch)
   );
+
+  $form['domain_batch_all'] = array(
+    '#type' => 'fieldset',
+    '#title' => 'Update value for all domains',
+    '#weight' => -10,
+    '#description' => 'With this form you can set the desired value for all domains.',
+  );
+  $form['domain_batch_all']['batch_all_setting'] = $batch['#form'];
+  $form['domain_batch_all']['batch_all_setting']['#default_value'] = $batch['#system_default'];
+  $form['domain_batch_all']['batch_override'] = array(
+    '#type' => 'checkbox',
+    '#title' => 'Apply to all domains',
+  );
+
   $form['domain_batch'] = array(
     '#tree' => TRUE,
     '#title' => $batch['#form']['#title'],
@@ -909,6 +923,13 @@ function domain_batch_form_validate($for
  * FormsAPI for saving batch form actions.
  */
 function domain_batch_form_submit($form, &$form_state) {
+  if ($form_state['values']['batch_override'] === 1) {
+    foreach ($form_state['values']['domain_batch'] AS $domain_id => $value) {
+      $options_all[$domain_id] = $form_state['values']['batch_all_setting'];
+    }
+    $form_state['values']['domain_batch'] = $options_all;
+  }
+
   $item = $form_state['values']['batch_item'];
   switch ($form_state['values']['handler']) {
     case 'domain':
