Hi, im trying to alter the default user registration form in Drupal but i can’t seem to get it.
Below is the function used to alter the form and i want to assign extra variables to it
function my_hook_form_user_register_alter(&$form, $sh_help, $sh_title) {
$form['user_registration_help']['#value'] = t($sh_help);
}
it is called by:
print drupal_get_form('user_register', $fields['help']->content, $fields['title']->content);
but it keeps on displaying:
warning: Missing argument 3 for my_hook_form_user_register_alter() …
What’s wrong? Can anybody here help?