You are here

function _views_bulk_operations_displays in Views Bulk Operations (VBO) 6

Helper function to identify VBO displays for a view.

File

./views_bulk_operations.module, line 2128
Allows operations to be performed on items selected in a view.

Code

function _views_bulk_operations_displays($view) {
  $displays = array();
  foreach ($view->display as $display_id => $display) {
    if ($display
      ->get_option('style_plugin') == 'bulk') {
      $displays[] = $display_id;
    }
  }
  return $displays;
}