最近使用Drupal的表单,调用表单时希望传入我需要的参数进入到表单构建方法,具体如下: function itemform_page($user) { // $output = t('This page contains our example form.'); // Return the HTML generated from the $form data structure. $uid = '888'; $output .= drupal_get_form('itemform',$uid); return $output; } function itemform(&$form_state,$uid) { $form['item_options'] = array( '#type' => 'value', '#value' => $uid ); }