Revision: 24787
                            
                                                            
                                    
                                        
Initial Code
                                    
                                    
                                                            
                                    
                                        
Initial URL
                                    
                                    
                                                            
                                    
                                        
Initial Description
                                    
                                    
                                                            
                                    
                                        
Initial Title
                                    
                                    
                                                            
                                    
                                        
Initial Tags
                                    
                                    
                                                            
                                    
                                        
Initial Language
                                    
                                    
                                                    
                        at March 11, 2010 06:48 by marcelodornelas
                            
                            Initial Code
function mysite_form_alter(&$form, &$form_state, $form_id) 
{
  switch ($form_id) 
  {
    case 'user_profile_form':
      $form['account']['name']['#size'] = 30;
      $form['account']['mail']['#size'] = 30;
      break;
  }
}
                                Initial URL
http://geeksandgod.com/forums/dynamic-website-forums/all-about-drupal/resize-registration-email-and-name-textfield-drupal-6
Initial Description
Resizing fields using a custom module You could also resize the field using a custom module. For example, if you created mysite.module, you could use something like this to reduce the field size to 30 characters
Initial Title
Drupal example on how to use form alter hook
Initial Tags
form, drupal
Initial Language
PHP