title: Overwriting the node has been created/updated drupal set messages
body: <p>drupal 7 working fine tested.</p>
  
  <pre><code>/**
  
   * Implementation of hook_form_alter().
  
   */
  
  function MY_MODULE_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  
    switch ($form_id) {
  
      case 'form_id':
        $form['actions']['submit']['#submit'][] = 'MY_MODULE_custom_submit';
      break;
    }
  
  }
  
  function MY_MODULE_custom_submit($form, &amp;$form_state)
  
  {
  
    //Get current messages and clear them.
  
    $messages = drupal_get_messages('status');
  
    drupal_set_message(t('Your custom status message here!'));
  
  }
  </code></pre>