You are here

function _views_bulk_operations_get_field in Views Bulk Operations (VBO) 7.3

Gets the VBO field if it exists on the passed-in view.

Return value

The field object if found. Otherwise, FALSE.

13 calls to _views_bulk_operations_get_field()
views_bulk_operations_adjust_selection in ./views_bulk_operations.module
Batch API callback: loads the view page by page and enqueues all items.
views_bulk_operations_config_form in ./views_bulk_operations.module
Multistep form callback for the "configure" step.
views_bulk_operations_confirm_form in ./views_bulk_operations.module
Multistep form callback for the "confirm" step.
views_bulk_operations_drush_execute in ./views_bulk_operations.drush.inc
Implementation of 'vbo execute' command.
views_bulk_operations_drush_list in ./views_bulk_operations.drush.inc
Implementation of 'vbo list' command.

... See full list

File

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

Code

function _views_bulk_operations_get_field($view) {
  foreach ($view->field as $field_name => $field) {
    if ($field instanceof views_bulk_operations_handler_field_operations) {

      // Add in the view object for convenience.
      $field->view = $view;
      return $field;
    }
  }
  return FALSE;
}