<?php
hook_menu() {
  $items['my_form/%'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array('my_form_function', 1),  // '1' being the 2nd position in the path. 0/1
  );
  return $items;
}
function my_form_function ($form, &$form_state, $variable) {
  //... awesome form stuff
}
?>
Advertisements