Hello,
I am trying to add some custom fields on the signup form through the theme hooks. The custom data is not appearing anywhere in extra information, it is not being saved to the signup log table. I have a fresh install of all the modules(signup, status, etc...) on a Drupal 5.7 install. The only additional module that I have installed is LDAP. I have custom profile fields created too. I have used your module before and not had this problem, it worked like a gem. The custom fields seem to be working fine, except that no data is being saved.
Do you have any idea why this could be happening or is this a bug?
My boss is really on my case about this, so I would really appreciate your help.
Here is a sample of my code that is in template.php
function pixture_signup_user_form()
{
global $user;
$profile = profile_load_profile($user);
$form['signup_form_data']['#tree'] = TRUE;
$form['username'] = array(
'#type' => 'textfield',
'#title' => t('UCID'),
'#value' => $user->name,
'#size' => 40,
'#maxlength' => 64
);
$form['first_name'] = array(
'#type' => 'textfield',
'#title' => t('First Name'),
'#value' => $user->profile_fname,
'#size' => 40,
'#maxlength' => 64
);
$form['last_name'] = array(
'#type' => 'textfield',
'#title' => t('Last Name'),
'#value' => $user->profile_lname,
'#size' => 40,
'#maxlength' => 64
);
return $form;
}
| Comment | File | Size | Author |
|---|---|---|---|
| template.php_.txt | 2.27 KB | kaw3939 |
Comments
Comment #1
dwwPlease re-read the comment in signup.theme at the top of function theme_signup_user_form(), and look at the example code provided with the module. In particular:
Good luck,
-Derek
Comment #2
kaw3939 commentedThanks