You are here

function flag_user::options in Flag 7.2

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

Adds additional options that are common for all entity types.

Overrides flag_entity::options

File

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

Class

flag_user
Implements a user flag.

Code

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

  // We supersede, but do not supplant, the regular entity display with an
  // option that's formatted in the style of user profiles.
  $options['show_on_entity'] = FALSE;
  $options += array(
    'show_on_profile' => TRUE,
    'access_uid' => '',
  );
  return $options;
}