title: How to modify or remove addSuccess message in Magento?
body: <p>For example, the following action will add a message which will be inserted into the page:</p>
  
  <p>-When addtocart button is clicked, it will display a message saying the product was added successful or not.
  The code is in app/code/core/Mage/Checkout/controllers/CartControllers.php</p>
  
  <pre><code>$message = $this-&gt;__('%s was added to your shopping cart.', Mage::helper('core')-&gt;escapeHtml($product-&gt;getName()));
  $this-&gt;_getSession()-&gt;addSuccess($message);
  </code></pre>
  
  <p>-When a product review is submitted, there will be a message saying the review has been accepted for moderation.
  The code is in app/code/core/Mage/Review/controllers/ProductController.php</p>
  
  <pre><code>$session-&gt;addSuccess($this-&gt;__('Your review has been accepted for moderation.'));
  </code></pre>
  
  <p>The above two are just examples, there are more other similar messages which are display on certain actions.</p>
  
  <p>I know how to override it, change or remove the message. For the addtocart message, it can also be turned off by going to the Admin Panel. </p>
  
  <p>I believe there is a better way to modify those messages than create a module and overriding the function just for modifying the message or remove it. </p>
  
  <p><strong>Does anyone know any better ways to modify or remove those addSuccess messages?
  How can we modify or remove those messages after addSuccess() function is already called and the messages are added?</strong></p>