Hoist validation errors from hidden fields to the top of the form
[lhc/web/wiklou.git] / includes / htmlform / HTMLFormField.php
index 0fab033..5d405c3 100644 (file)
@@ -55,6 +55,15 @@ abstract class HTMLFormField {
                return false;
        }
 
+       /**
+        * True if this field type is able to display errors; false if validation errors need to be
+        * displayed in the main HTMLForm error area.
+        * @return bool
+        */
+       public function canDisplayErrors() {
+               return true;
+       }
+
        /**
         * Get a translated interface message
         *