Name

pkit_set_errorspan — Sets PKIT_ERRORSPAN tags

Synopsis

      $model->pkit_set_errorspan('state');

      # possible since version 1.08
      $model->pkit_set_errorspan( 'state', '#00ff00' );
     

Description

Sets the corresponding PKIT_ERRORSPAN tag in the template. Useful for implementing your own custom constraints. Since version 1.08 it is possible to select the errorstr. This is done with the second parameter. The color must be a string thar starts with a # followed by exactly six hexdigits. If you do not specify the errorstr, the string is taken from the default_errorstr. See also PKIT_ERRORSTR.