OK, so this is my hook shape change function. This leads to the fact that all registration forms on the site will be written in an inscription that I do not want, because I just want it on this page.
function special_registration_form_alter(&$form, $form_state, $form_id) { if ($form_id == 'user_register') { drupal_set_title(t('Custom registration')); $form['firstname'] = array('#type' => 'textfield', '#title' => t('First Name: *'), '#required' => TRUE, '#size' => 45, '#weight' => - 100,); $form['lastname'] = array('#type' => 'textfield', '#title' => t('Last Name: *'), '#required' => TRUE, '#size' => 45, '#weight' => - 99,); }
I only first name and last name to be captured and stored in a different table just on this page.
On other pages, I just need a good old fashioned uniform. Do I still need to change weight? I know that I am missing something basic.
php drupal drupal-6 drupal-fapi
user363036
source share