title: Core javascript functions to make error, warning or notice messages appear?
body: <p>Does anyone know what the core drupal javascript functions are to force an error message? More importantly, it must work with Message Effects (<a href="http://drupal.org/project/messagefx" rel="nofollow noreferrer">http://drupal.org/project/messagefx</a>).</p>
  
  <p>With JS Theming you can call these:  (this is javascript code)</p>
  
  <pre><code>Drupal.messages.set("The Message!", 'error');
  </code></pre>
  
  <p>But, it doesn't hook into Message Effects, and after disabling JS theming, this function no longer works.</p>