user register hook form alter not reaching I am trying to request more information from users when they register for my site.  I put a set-message in and it's not eve appearing nor any changes in the user register form.

I cant seem to find anything online to work, any help would be greatly appreciated.  Thanks!

 &lt;?php
       function hook_form_alter(&amp;$form, &amp;$form_state, $form_id){

         drupal_set_messge($form_id);

         if ($form_id == "user_register_form") {
              $form['account']['name']['#title'] = t('Full name');

              $form['city'] = array(
                '#type' =&gt; 'textfield', 
                '#title' =&gt; t('City'),
                '#size' =&gt; 15,
                '#required' =&gt; TRUE,
              );

              $form['state'] = array(
                '#type' =&gt; 'textfield', 
                '#title' =&gt; t('State'),
                '#size' =&gt; 15,
                '#required' =&gt; TRUE,
               );

               $form['#submit'][] = 'hook_from_alter_submit';

          }

     }

    function hook_form_alter_submit($form, &amp;$form_state) {

       $city = $form_state['values']['city'];
       $state = $form_state['values']['state'];
    }

 ?&gt;
The naming convention for hooks is:

MODULENAME_hook_name()


So to implement hook_form_alter() in a module called MYMODULE, your function would be defined as:

function MYMODULE_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  // ...
}


Have a look at What is the basic concept behind hooks? for a more detailed explanation.