Solar_Form::addInvalids()
public
void
Solar_Form::addInvalids
( array $list
, string $array = NULL
)
Adds invalidation messages to multiple elements, sets their status to false (invalid) and sets the form status to false (invalid).
Parameters
(array)
$list
: An array where the key is the element name, and the value is a string or array of invalidation messages for that element.(string)
$array
: Rename each element as a key in this array.
Returns
(void)
Description
Adds invalidation messages to multiple elements, sets their status to false (invalid) and sets the form status to false (invalid).