You are here

function flag_flag::validate in Flag 7.3

Same name and namespace in other branches
  1. 5 flag.inc \flag_flag::validate()
  2. 6.2 flag.inc \flag_flag::validate()
  3. 6 flag.inc \flag_flag::validate()
  4. 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

includes/flag/flag_flag.inc, line 268
Contains the flag_flag class. Flag type classes use an 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());
}