You are here

function flag_node::options in Flag 7.2

Same name and namespace in other branches
  1. 6.2 flag.inc \flag_node::options()
  2. 7.3 includes/flag/flag_node.inc \flag_node::options()

Adds additional options that are common for all entity types.

Overrides flag_entity::options

File

./flag.inc, line 1491
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

flag_node
Implements a node flag.

Code

function options() {
  $options = parent::options();

  // Use own display settings in the meanwhile.
  unset($options['show_on_entity']);
  $options += array(
    'show_on_page' => TRUE,
    'show_on_teaser' => TRUE,
    'show_on_form' => FALSE,
    'show_contextual_link' => FALSE,
    'i18n' => 0,
  );
  return $options;
}