hook_view_draw(): Trick it to add input fields?

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by jeff00seattle on March 25, 2009 at 6:31pm

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()?

Posted by merlinofchaos on March 25, 2009 at 8:06pm

What is hook_view_draw()?

CCK field

Posted by jason.fisher on March 26, 2009 at 4:08am

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:

AltStyle によって変換されたページ (->オリジナル) /