summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views_bulk_operations.drush.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/views_bulk_operations.drush.inc b/views_bulk_operations.drush.inc
index 0d11af9..e9dca04 100644
--- a/views_bulk_operations.drush.inc
+++ b/views_bulk_operations.drush.inc
@@ -56,10 +56,8 @@ function views_bulk_operations_drush_list() {
$vbo = _views_bulk_operations_get_field($view);
if ($vbo) {
$operations = array();
- foreach (array_filter($vbo->options['vbo']['selected_operations']) as $operation) {
- if (isset($vbo->all_operations[$operation])) {
- $operations[] = $vbo->all_operations[$operation]['label'] .' ('. $operation .')';
- }
+ foreach ($vbo->get_selected_operations() as $operation => $label) {
+ $operations[] = $label .' ('. $operation .')';
}
$operations[] = "---------------";
$rows[] = array(