You are here

function flag_entity::get_labels_token_types in Flag 7.2

Same name and namespace in other branches
  1. 7.3 includes/flag/flag_entity.inc \flag_entity::get_labels_token_types()

Returns token types for the current entity type.

1 call to flag_entity::get_labels_token_types()
flag_comment::get_labels_token_types in ./flag.inc
Returns token types for the current entity type.
1 method overrides flag_entity::get_labels_token_types()
flag_comment::get_labels_token_types in ./flag.inc
Returns token types for the current entity type.

File

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

Class

flag_entity
Base entity flag handler.

Code

function get_labels_token_types() {

  // The token type name might be different to the entity type name. If so,
  // an own flag entity handler can be used for overriding this.
  return array_merge(array(
    $this->content_type,
  ), parent::get_labels_token_types());
}