By _-dave-_ on
Hi
I am creating a node module which has a table of related items. I have these outputting as an editable table and wish to palce a delete button at the end of each row so that users can delete specific rows individually. I have managed to get the buttons appearing using the stand button type form element but cannot see how I hook into the button click.
When I click the button the form is submitted and the "op" code is set to "delete_highlight" but I do not know which hook I should be using to react to this or how I can pass the record id that requires deleting?
Any ideas more than welcome...
Thanks
Dave
Comments
There's a common pattern in
There's a common pattern in Drupal to make the 'delete' a link that points to some deleteing URL. Just hover your mouse over various 'delete' links in Drupal to see what I mean.
I gave an example here:
http://drupal.org/node/67715
Thanks
Think I can figure it from there...
Cheers
Dave