You are here

function _views_bulk_operations_object_info_for_view in Views Bulk Operations (VBO) 6

Same name and namespace in other branches
  1. 6.3 views_bulk_operations.module \_views_bulk_operations_object_info_for_view()

Helper function to return object info for a given view.

4 calls to _views_bulk_operations_object_info_for_view()
theme_views_bulk_operations_confirmation in ./views_bulk_operations.module
Theme function to show the confirmation page before executing the action.
views_bulk_operations_plugin_style::get_operations_options in ./views_bulk_operations_plugin_style.inc
_views_bulk_operations_action_form in ./views_bulk_operations.module
Helper function to let the configurable action provide its configuration form.
_views_bulk_operations_execute in ./views_bulk_operations.module
Helper function to execute the chosen action upon selected objects.

File

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

Code

function _views_bulk_operations_object_info_for_view($view) {
  foreach (_views_bulk_operations_get_object_info() as $object_info) {
    if ($object_info['base_table'] == $view->base_table) {
      return $object_info + array(
        'context' => '',
        'oid' => '',
        'access' => NULL,
        'hook' => '',
        'normalize' => NULL,
      );
    }
  }
  watchdog('vbo', 'Could not find object info for view table @table.', array(
    '@table' => $view->base_table,
  ), WATCHDOG_ERROR);
  return NULL;
}