I have a custom model containing two paths. Each path goes to the same function. I wanna to send to each page arguments specific parameter and reception on the function then pass the hidden value to submit function.
$items['parkingcalculator_normal'] = array( 'title' => t('Parking calculator'), 'description' => 'Parking Calculator Page', 'page callback' => 'drupal_get_form', 'page arguments' => array('parkingcalulator_form',0), 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['parkingcalculator_valet'] = array( 'title' => t('Parking calculator'), 'description' => 'Parking Calculator Page', 'page callback' => 'drupal_get_form', 'page arguments' => array('parkingcalulator_form',0 ), 'access callback' => TRUE, ); function parkingcalulator_form($form, &$form_state , $type){...}
but the function does not take the parameter and does not pass the value in the hidden form type to
function parkingcalulator_form_submit($form, &$form_state ,$type)