Drupal pass argument to page
Posted
by stotastic
on Stack Overflow
See other posts from Stack Overflow
or by stotastic
Published on 2010-06-12T17:26:57Z
Indexed on
2010/06/12
17:32 UTC
Read the original article
Hit count: 195
I have a custom Drupal module displaying some data in a table. Each row has a link which if clicked will delete the relevant row. Specifically, when the link is clicked it will take the user to a confirmation page. This page is really just a drupal form which says 'are you sure' with two buttons: 'Yes', 'No'. I figure I will need to pass the rowID to the confirmation page.
My question: What is the typically way to pass data to a new page in Drupal 7? I guess I could just add the rowID to the URL and use the $_GET[] from the confirmation page... I don't think this is very safe and was wondering if there was a better 'Drupal' way.
Thanks!
© Stack Overflow or respective owner