You are here

function flag_handler_relationship::option_definition in Flag 7.2

Same name and namespace in other branches
  1. 6.2 includes/flag_handler_relationships.inc \flag_handler_relationship::option_definition()
  2. 7.3 includes/views/flag_handler_relationships.inc \flag_handler_relationship::option_definition()

Every relationship has a 'flag' option.

Overrides views_handler_relationship::option_definition

1 call to flag_handler_relationship::option_definition()
flag_handler_relationship_content::option_definition in includes/flag_handler_relationships.inc
Every relationship has a 'flag' option.
1 method overrides flag_handler_relationship::option_definition()
flag_handler_relationship_content::option_definition in includes/flag_handler_relationships.inc
Every relationship has a 'flag' option.

File

includes/flag_handler_relationships.inc, line 18
Contains various relationship handlers.

Class

flag_handler_relationship
Base class for all our relationship classes.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['flag'] = array(
    'default' => NULL,
  );
  $options['required'] = array(
    'default' => 1,
  );
  return $options;
}