You are here

private function views_bulk_operations_plugin_style::get_operations_options in Views Bulk Operations (VBO) 6.3

Same name and namespace in other branches
  1. 6 views_bulk_operations_plugin_style.inc \views_bulk_operations_plugin_style::get_operations_options()
1 call to views_bulk_operations_plugin_style::get_operations_options()
views_bulk_operations_plugin_style::options_form in ./views_bulk_operations_plugin_style.inc

File

./views_bulk_operations_plugin_style.inc, line 166

Class

views_bulk_operations_plugin_style

Code

private function get_operations_options() {
  $options = array();
  $object_info = _views_bulk_operations_object_info_for_view($this->view);
  if (!$object_info) {
    return $options;
  }
  foreach ($this->all_operations as $key => $operation) {
    if ($operation['type'] == $object_info['type'] || $operation['type'] == 'system' || in_array($object_info['hook'], (array) $operation['hooks'])) {
      $options[$key] = $operation['label'] . ' (' . $key . ')';
    }
  }
  return $options;
}