You are here

function flag_handler_relationship_content::option_definition in Flag 6

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

File

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

Class

flag_handler_relationship_content
Specialized relationship handler associating flags and content.

Code

function option_definition() {
  $options = parent::option_definition();
  $content_type = $this->definition['flag type'];
  $options['flag'] = array(
    'default' => flag_views_flag_default($content_type),
  );
  $options['user_scope'] = array(
    'default' => 'current',
  );
  $options['required'] = array(
    'default' => 1,
  );
  return $options;
}