Index: includes/legacy.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/legacy.inc,v
retrieving revision 1.1
diff -u -r1.1 legacy.inc
--- includes/legacy.inc	7 Oct 2005 06:10:54 -0000	1.1
+++ includes/legacy.inc	15 Oct 2005 02:39:37 -0000
@@ -578,6 +578,15 @@
 }
 
 /**
+ * Return the error message filed against the form with the specified name.
+ */
+function _form_get_error($name) {
+  if (array_key_exists('form', $GLOBALS)) {
+    return $GLOBALS['form'][$name];
+  }
+}
+
+/**
  * @} End of "defgroup form".
  */
 
