library/core/class.form.php
public function Errors() {
      $Return = '';
      if (is_array($this->_ValidationResults) && count($this->_ValidationResults) > 0) {
         $Return = "<div class=\"Messages Errors\">\n<ul>\n";
         foreach($this->_ValidationResults as $FieldName => $Problems) {
            $Count = count($Problems);
            for($i = 0; $i < $Count; ++$i) {
               if (substr($Problems[$i], 0, 1) == '@')
                  $Return .= '<li>'.substr($Problems[$i], 1)."</li>\n";
               else
                  $Return .= '<li>' . sprintf(
                     T($Problems[$i]),
                     T($FieldName)) . "</li>\n";
            }
         }
         $Return .= "</ul>\n</div>\n";
      }
      return $Return;
   }
public function Errors() {
      $Return = '';
      if (is_array($this->_ValidationResults) && count($this->_ValidationResults) > 0) {
         $Return = "<div class=\"Messages Errors\">\n<ul>\n";
         foreach($this->_ValidationResults as $FieldName => $Problems) {
            $Count = count($Problems);
            for($i = 0; $i < $Count; ++$i) {
               if (substr($Problems[$i], 0, 1) == '@')
                  $Return .= '<li>'.substr($Problems[$i], 1)."</li>\n";
               else
                  $Return .= '<li>' . sprintf(
                     T($Problems[$i]),
                     T($FieldName)) . "</li>\n";
            }
         }
         $Return .= "</ul>\n</div>\n";
      }
      return $Return;
   }
public function Errors ( ) { $ Return = '' ; if ( is_array ( $ this -> _ValidationResults ) && count ( $ this -> _ValidationResults ) > 0 ) { $ Return = "<div class=\"Messages Errors\">\n<ul>\n" ; foreach ( $ this -> _ValidationResults as $ FieldName => $ Problems ) { $ Count = count ( $ Problems ) ; for ( $ i = 0 ; $ i < $ Count ; ++ $ i ) { if ( substr ( $ Problems [ $ i ] , 0 , 1 ) == '@' ) $ Return .= '<li>' . substr ( $ Problems [ $ i ] , 1 ) . "</li>\n" ; else $ Return .= '<li>' . sprintf ( T ( $ Problems [ $ i ] ) , T ( $ FieldName ) ) . "</li>\n" ; } } $ Return .= "</ul>\n</div>\n" ; } return $ Return ; }
Returns XHTML for all form-related errors that have occurred.

@return string
Returns XHTML for all form - related errors that have occurred .