You are here

function flag_handler_relationship_counts::option_definition in Flag 6

File

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

Class

flag_handler_relationship_counts
Specialized relationship handler associating flag counts 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['required'] = array(
    'default' => 1,
  );
  return $options;
}