[support] How pass the parameter for form

bharani kumar bharanikumariyerphp at gmail.com
Wed Mar 18 16:27:11 UTC 2009


This is my snippet
 how to pass the argument for the form function ,

Below is the sample one, but not working,can u make it work,

$output[] .=drupal_get_form('username_form','$usernameID','$username');



function username_form(&$node, $form_values){
$form['userName'] = array(
'#type' => 'select',
'#title' => t('User Name'),
'#options' => array(
$usernameID => '$username',
),
'#default_value' => '1',
'#description' => t(''),
'#required' => TRUE
);
 return $form;

}
-- 
உங்கள் நண்பன்
பரணி  குமார்

Regards
B.S.Bharanikumar

POST YOUR OPINION
http://bharanikumariyerphp.site88.net/bharanikumar/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090318/3c19f8c1/attachment.htm>


More information about the support mailing list