private function views_bulk_operations_plugin_style::get_operations_options in Views Bulk Operations (VBO) 6.3
Same name and namespace in other branches
- 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()
File
- ./
views_bulk_operations_plugin_style.inc, line 166
Class
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;
}