Form

# submit $form['submit'] = array('#type' => 'submit', '#value' => t('Import')); # textfield $form['title'] = array( '#type' => 'textfield', '#title' => t('Subject'), '#default_value' => $node->title, '#size' => 60, '#maxlength' => 128, '#required' => TRUE, ); # select $form['selected'] = array( '#type' => 'select', '#title' => t('Selected'), '#options' => array( 0 => t('No'), 1 => t('Yes'), ), '#default_value' => $category['selected'], '#description' => t('Set this to <em>Yes</em> if you would like this category to be selected by default.'), ); # checkbox $form['copy'] = array( '#type' => 'checkbox', '#title' => t('Send me a copy.'), ); # checkboxes $form['high_school']['tests_taken'] = array( '#type' => 'checkboxes', '#options' => drupal_map_assoc(array(t('SAT'), t('ACT'))), '#title' => t('What standardized tests did you take?'), ... ), # textarea $form['keywords'] = array( '#title' => t('Keywords'), '#type' => 'textarea', '#description' => t('The comment will be unpublished if it contains any of the phrases above. Use a case-sensitive, comma-separated list of phrases. Example: funny, bungee jumping, "Company, Inc."'), '#default_value' => isset( $context['keywords']) ? drupal_implode_tags($context['keywords']) : '', ); $form['vid'] = array('#type' => 'value', '#value' => $node->vid);