Month: March 2010

Drupal 6: Passing Arguments to a Form

Naveen Nayak March 16, 2010 2 Comments Drupal

This is the form to which we are passing arguments to. Remember that the first parameter that is received in the form is the $form_state /* * My Form function * First parameter is &$form_state */ function my_form(&$form_state, $param1,$param2) { $form[‘heading’] = array ( ‘#type’ => ‘markup’, ‘#value’ => $param1, ); $form[‘submit’] = array ( […]

Page 1 of 1