You are here

function heartbeat_views_views_bulk_operations_object_info in Heartbeat 6.4

Implementation of hook_views_bulk_operations_object_info()

The array returned for each object type contains: 'type' => the object type name, should be the same as 'type' field in actions. 'base_table' => the Views 2 table name corresponding to that object type, should be the same as the $view->base_table attribute. 'load' => a function($id) that returns the corresponding object. 'title' => an attribute on the object that returns a human-friendly identifier of the object. 'access' (optional) => a function($op, $node, $account = NULL) that behaves like node_access().

File

views/heartbeat_views.module, line 27

Code

function heartbeat_views_views_bulk_operations_object_info() {
  return array(
    'heartbeat_activity' => array(
      'type' => 'heartbeat_activity',
      'base_table' => 'heartbeat_activity',
      'load' => 'heartbeat_load_message_instance',
      'title' => 'message',
      'oid' => 'uaid',
      'access' => '_heartbeat_message_has_access',
    ),
  );
}