function data_vbo_views_bulk_operations_object_info in Data 6
Implementation of hook_views_bulk_operations_object_info().
File
- data_vbo/
data_vbo.module, line 24
Code
function data_vbo_views_bulk_operations_object_info() {
$object_info = array();
foreach (data_get_all_tables() as $table_name => $table) {
$schema = $table
->get('table_schema');
$object_info[$table_name] = array(
'type' => 'data',
'base_table' => $table_name,
'load' => array(
new DataViewsBulkOperationsHelper($table_name),
'load',
),
'oid' => $schema['primary key'][0],
// TODO handle more than one PK in VBO
'title' => $schema['primary key'][0],
);
}
return $object_info;
}