hi all..
i have some working personal module, but the "e_reg_form_alter" do nothing..
i try this:

<?php
function e_reg_form_alter($form_id, $form) {
  switch ($form_id) {
    case 'user-register':
      print_r($form);
      break;
  }
}
?>

the module name and filenames is "e_reg" too.. and the drupal is the newest 6.2..
any idea?

Comments

reload’s picture

hello eapo try it like this...

function e_reg_form_alter(&$form, $form_state, $form_id){
  switch ($form_id) {
    case 'user-register':
      print_r($form);
      break;
  }
}

Cheers

heather’s picture

Usability dead forum post pruning

Reload, thank you for posting your advice. Perhaps you'd be interested in finding a good place in the handbook to add this code snippet, or possibly turn it into a tutorial if you have time. It looks really helpful.

1) This forum is no longer actively used. Please do not post in this forum or reply to this post, it will help us to keep the usability issues clear. Thank you for your help!
2) This is a feature or support request or other not related to Drupal usability.

Please see the appropriate issue queue http://drupal.org/project/issues or group on http://groups.drupal.org

If this had been a suggestion for Drupal usability improvements, I would have added the issue to the queue and posted the link here.

------------------------------------------------------------------
"Knowledgeable in Some Matters" http://nearlythere.com/

tvazone’s picture

hi eaposztrof,
This tutorial at link below:
http://www.lullabot.com/articles/modifying-forms-5-and-6