The task: I have a database table not suited for nodes (bulk data) yet I need to manipulate the data.
Two choices:
1 I created a module & form calling the table, used db_select() and tableselect only to find that TableSort doesn't work properly (the column sorts but no data is populated in the actual column, 2 days of mucking about)
2. So I dropped that approach and spent the last couple days registering my database table with Views, figuring I could use VBO checkbox + delete action to achieve my goals.
After some struggling, Views sees my table. No VBO options, I find that I have to register my table with the hook_views_bulk_operations_object_info.
What isn't clear, and I can't find it anywhere (forums, docs) is a full example of how to do this. I've seen examples in the forums and I tried to emulate the object definition, but the VBO options are not showing up,.
function check_manage_views_bulk_operations_object_info() {
return array(
'check_manage_data' => array(
'type' => 'transaction',
'base_table' => 'check_transaction_table',
'title' => 'transaction1',
),
);
return $object_info;
}
Questions:
1. What is "type" specifically? does it have to be named to something I already have in the system?
2. are the arguments complete above? Am I missing something?