You are here

function views_bulk_operations_plugin_style::get_operation_info in Views Bulk Operations (VBO) 6

Same name and namespace in other branches
  1. 6.3 views_bulk_operations_plugin_style.inc \views_bulk_operations_plugin_style::get_operation_info()

API function to get operation information.

File

./views_bulk_operations_plugin_style.inc, line 265

Class

views_bulk_operations_plugin_style

Code

function get_operation_info($key) {
  if (empty($this->all_operations[$key])) {
    return NULL;
  }
  $operation = $this->all_operations[$key];
  $operation['perm label'] = $operation['label'];
  if (!empty($this->options['operations'][$key]['label'])) {
    $operation['label'] = t($this->options['operations'][$key]['label']);
  }
  $operation['options'] = $this->options['operations'][$key] + array(
    'settings' => NULL,
  );
  return $operation;
}