hook_view_draw(): Trick it to add input fields?

Events happening in the community are now at Drupal community events on www.drupal.org.
jeff00seattle's picture

Hi

I am just curious if there is a way of tricking the items array returned from hook_view_draw() whereby some of the array elements do not reference a field within a table in a database, but actually a input like a button?

For example using users table, generate a view from a custom hook_view_draw() the following:

Sortable   Sortable
[User ID 1][User Name 1][Update Button for User ID 1][Delete Button for User ID 1]
[User ID 2][User Name 2][Update Button for User ID 2][Delete Button for User ID 2]
[User ID 3][User Name 3][Update Button for User ID 3][Delete Button for User ID 3]

Thanks

Jeff in Seattle

Comments

What is hook_view_draw()?

merlinofchaos's picture

What is hook_view_draw()?

CCK field

jason.fisher's picture

You could create a dynamic (computed or other) fields to hold links, or create a custom view field hook to expose links/buttons as fields.

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week