September 2012

Using custom tables with Views Bulk Operations

There are two ways to expose your custom table to VBO.
1. Using the entity as documented in VBO
2. The approach is using 'pass rows' capability of VBO.
In this article we will use the second approach with VBO, so here we go
1. Expose your custom table to view using hook_views_data().
2. Implement the hook_action_info()

function mymodule_action_info() {
  return array(
    'mymodule_myaction' => array(
      'type' => 'entity',
      'label' => t('Do my action'),
      'configurable' => FALSE,