function flag_flag::validate in Flag 6.2
Same name and namespace in other branches
- 5 flag.inc \flag_flag::validate()
- 6 flag.inc \flag_flag::validate()
- 7.3 includes/flag/flag_flag.inc \flag_flag::validate()
- 7.2 flag.inc \flag_flag::validate()
Validates this flag's options.
Return value
A list of errors encountered while validating this flag's options.
File
- ./
flag.inc, line 287 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_flag
- This abstract class represents a flag, or, in Views 2 terminology, "a handler".
Code
function validate() {
// TODO: It might be nice if this used automatic method discovery rather
// than hard-coding the list of validate functions.
return array_merge_recursive($this
->validate_name(), $this
->validate_access());
}