title: Drupal: Fatal error: Cannot redeclare > node_form_submit() (previously > declared in
body: <p>I want to redirect my form after submissions, I'm trying to use a hook, but this is what I get:</p>
  
  <pre><code>function node_form_submit(&amp;$form, $form_state) {  
      $form_state['redirect'] = 'contentManager/';
  }
  </code></pre>
  
  <blockquote>
    <p>Fatal error: Cannot redeclare
    node_form_submit() (previously
    declared in
    drupal/modules/node/node.pages.inc:451)
    in
    drupal/sites/all/themes/bluemarine/template.php
    on line 31</p>
  </blockquote>
  
  <p>I'm using the module name "node" for my hook. I guess this is wrong, but I don't understand why</p>
  
  <p><strong>Update</strong>:
  Ok, I'm not developing a new module. I've added the function to template.php in my Bluemarine template.</p>
  
  <pre><code>function bluemarine_form_alter(&amp;$form, $form_state) {
      $form_state['redirect'] = 'contentManager/';
  }
  </code></pre>
  
  <p>Bluemarine is the name of my theme.. "contentManager" is a page I've created in my backend with a View with all nodes.</p>
  
  <p>This function is completely ignored.</p>
  
  <p><strong>Update2</strong>
  Ok, so now, this is my current template.php file (I'm sure phptemplate_node_form is invoked)</p>
  
  <pre><code>function phptemplate_node_form($form) {
    $form['#submit'][] = 'myFormSubmit';
  }
  
  function myFormSubmit() {
      echo "hello";
      die();
  }
  </code></pre>
  
  <p>The function myFormSubmit is not invoked.</p>
  
  <p>thanks</p>