hook_ alter_form Drupal5

  1. function cckwizards_form_alter($form_id, &$form) {
  2.   if ($form_id == 'deadlines_node_forms') {
  3.    // This would put the lastnaam element at the bottom of the form.
  4.    // Depending on what you want to do insert it in the right part of the array, var_dump $form to see where.
  5.     $form['lastnaam'] = array(
  6.      '#type' => 'textfield',
  7.      '#size' => 50,
  8.      '#title' => 'Your last name SRODRIGUEZ',
  9.      '#description' => t('Please write your last name. SRODRIGUEZ'),
  10.     );
  11.   }
  12. }