Fix for $form_state['redirect']

  1. function emailusers_compose_form_submit($form,&$form_state) {
  2.         $form_values = $form_state['values'];
  3.         $account = $form_values['to'];
  4.         drupal_mail ('emailusers','composemessage',$account->mail,user_preferred_language($account),$form_values,variable_get('site_mail',null),true );
  5.         $form_state['redirect'] = sprintf('user/%d', $account->uid);   
  6. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.