Drupal 7 form_state[redirect] does not work I am new to Drupal development and I stuck on a problem.
I have got a form which I append to a node. The custom submit method is called correctly, but my redirect does not work. When I press the button I got redirected to the form.
Thank you very much in advance

    function ticketGenerator_node_view($node, $view_mode) {
    $nodetype = node_type_get_type($node);
    $nodetype = $nodetype-&gt;type;
    if ($view_mode == 'full' &amp;&amp; node_is_page($node) &amp;&amp; $nodetype=='event') {
    $node-&gt;content['buttonKaufentest'] = drupal_get_form('ticketGenerator_generateform',$node);
    }
    return $node;


}

    function ticketGenerator_generateform($form, &amp;$form_state,$node){
    $form = array();
    $form['name'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Name'),
);
    $form['submit'] = array(
    '#type' =&gt; 'submit' ,
    '#value' =&gt; 'buttonalter',
    '#submit' =&gt; array('ticketGenerator_list_submit')
 );
 return $form;


}

   function ticketGenerator_list_submit($form,$form_state){
   drupal_set_message('custom submit has been invoked');
   $form_state['redirect'] = 'www.google.de';
   }
You need to pass $form_state in by reference, or the change won't be persisted outside of the function scope:

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