You are here

function flag_comment::options in Flag 7.2

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

Adds additional options that are common for all entity types.

Overrides flag_entity::options

File

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

Class

flag_comment
Implements a comment flag.

Code

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

  // Use own display settings in the meanwhile.
  unset($options['show_on_entity']);
  $options += array(
    'access_author' => '',
    'show_on_comment' => TRUE,
  );
  return $options;
}