Index: views_bulk_operations.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_bulk_operations/views_bulk_operations.module,v
retrieving revision 1.29.2.9.2.13
diff -u -p -r1.29.2.9.2.13 views_bulk_operations.module
--- views_bulk_operations.module	25 Sep 2008 19:17:14 -0000	1.29.2.9.2.13
+++ views_bulk_operations.module	27 Sep 2008 02:10:30 -0000
@@ -140,12 +140,6 @@ function views_bulk_operations_form($for
       '#prefix' => '<div id="views-bulk-operations-select">',
       '#suffix' => '</div>',             
     );
-    $form['select']['action'] = array(
-      '#type' => 'select',
-      '#options' => array(0 => t('- Choose an operation -')) + $plugin->get_selected_operations(),
-      '#prefix' => '<div id="views-bulk-operations-dropdown">',
-      '#suffix' => '</div>',             
-    );
     $form['objects'] = array(
       '#type' => 'views_node_selector',
       '#view' => $plugin->view,
@@ -154,12 +148,31 @@ function views_bulk_operations_form($for
       '#prefix' => '<div class="views-node-selector">',
       '#suffix' => '</div>',
     );
-    $form['select']['submit'] = array(
-      '#type' => 'submit',
-      '#value' => t('Execute'),
-      '#prefix' => '<div id="views-bulk-operations-submit">',
-      '#suffix' => '</div>',             
-    );
+    if ($plugin->options['display_type'] == 0) {
+      // Create dropdown and submit button.
+      $form['select']['action'] = array(
+        '#type' => 'select',
+        '#options' => array(0 => t('- Choose an operation -')) + $plugin->get_selected_operations(),
+        '#prefix' => '<div id="views-bulk-operations-dropdown">',
+        '#suffix' => '</div>',             
+      );
+      $form['select']['submit'] = array(
+        '#type' => 'submit',
+        '#value' => t('Execute'),
+        '#prefix' => '<div id="views-bulk-operations-submit">',
+        '#suffix' => '</div>',             
+      );
+    }
+    else {
+      // Create buttons for actions.
+      foreach ($form['plugin']['#value']->get_selected_operations() as $md5 => $description) {
+        $form['select'][$md5] = array(
+          '#type' => 'submit',
+          '#value' => $description,
+          '#hash' => $md5,
+        );
+      }
+    }
     break;
   
   case VIEWS_BULK_OPS_STEP_SINGLE:
@@ -242,6 +255,9 @@ function views_bulk_operations_form_vali
     if (!array_sum($form_state['values']['objects'])) { // If all 0, no row selected
       form_set_error('objects', t('No row selected. Please select one or more rows.'));
     }
+    if (!empty($form_state['clicked_button']['#hash'])) {
+      $form_state['values']['action'] = $form_state['clicked_button']['#hash'];
+    }
     if (!$form_state['values']['action']) { // No action selected
       form_set_error('action', t('No operation selected. Please select an operation to perform.'));
     }
Index: views_bulk_operations_plugin_style.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_bulk_operations/Attic/views_bulk_operations_plugin_style.inc,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 views_bulk_operations_plugin_style.inc
--- views_bulk_operations_plugin_style.inc	26 Sep 2008 17:22:01 -0000	1.1.2.4
+++ views_bulk_operations_plugin_style.inc	27 Sep 2008 02:10:30 -0000
@@ -7,6 +7,7 @@ class views_bulk_operations_plugin_style
     parent::options($options);
     $options['selected_operations'] = array();
     $options['use_batch'] = TRUE;
+    $options['display_type'] = 0;
     $this->populate_operations($options);
   }
 
@@ -17,6 +18,15 @@ class views_bulk_operations_plugin_style
       '#title' => t('Use Batch API to process selected rows.'),
       '#default_value' => $this->options['use_batch'],
     );
+    $form['display_type'] = array(
+      '#type' => 'radios',
+      '#title' => t('Display operations as'),
+      '#default_value' => $this->options['display_type'],
+      '#options' => array(
+        t('Dropdown selectbox with Submit button'),
+        t('Each action as a separate button'),
+      ),
+    );
     $form['selected_operations'] = array(
       '#type' => 'checkboxes',
       '#title' => t('Selected operations'),
