Drupal 7 & VBO: cannot get hook_views_bulk_operations_object_info() right

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?

what module for views to return images from nodes?

I've set up a simple photo gallery site using Drupal 7 and Gallery Formatter. It's very simple, you create a node of content type "album", with title, description, tags, and unlimited images. Gallery Formatter then displays the node in a nice display. This all works well.

Fatal error: Cannot redeclare user_autocomplete()

Hey all,

I was doing a lot of work on my site and accidentally broke the "My Account" page. I'm not sure what I was doing that caused it to break, but every page works except the my account page.

I get the error: Fatal error: Cannot redeclare user_autocomplete() (previously declared in /modules/modules/user/user.pages.inc:11) in /modules/user/user.pages.inc on line 21

Does anyone know how to fix this?

Image Gallery / Media Gallery

Hi all,
I have searched through posts here, other forums and blogs and tried different modules and countless hours on this, but I can't find a way to make a media gallery the way I want it.

HERE'S WHAT I'M AFTER:
1. A 'Media' Content Type with:
• title
• thumbnail image
• large image, page link or swf
• client name
• project type
• text body
• project category
• project URL if necessary

2. A two column 'Media Gallery' page with:
• category sorting
• title
• thumbnail
• client name
• project type
• text body

Upon clicking the thumbnail it opens a lightbox (using the color plugin) containing the large image or URL with html content.

3. The latest 10 'Media' entries to appear on the index page with a jQuery slider (2 in each window, five windows) - upon clicking the image thumbnail it too opens the lightbox

WHAT I HAVE ACCOMPLISHED:
1. The media type

2. The 'color' lightbox successfully implemented

WHAT I CAN'T FIGURE OUT:
1. How to make a custom thumbnail with the color lightbox opening specified content

2. Have the thumbnail on the index page open the lightbox

Module Media gallery want enable

Hi guys!

I installed Media Gallery module. There were some several modules needed, as well. I installed all except CTools. Please give me link from where I can download it.

Anyway I cannot enable media modules. Would this CTools module solve the problem ? (I enable all other needed modules)

Thanks!

Feeds QueryPath Parser - need help with correct CSS selector for attribute

I am learning how to use Feeds QueryPath parser and am finding how powerful it is to allow my to import XML into Drupal.

I think my question is simple, but since I am new to this query language, I need a bit of help....

FIRST of all - here is a snippet from my XML document...

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x