function flag_entity::options in Flag 7.3
Same name and namespace in other branches
- 7.2 flag.inc \flag_entity::options()
Adds additional options that are common for all entity types.
Overrides flag_flag::options
3 calls to flag_entity::options()
- flag_comment::options in includes/
flag/ flag_comment.inc - Adds additional options that are common for all entity types.
- flag_node::options in includes/
flag/ flag_node.inc - Adds additional options that are common for all entity types.
- flag_user::options in includes/
flag/ flag_user.inc - Adds additional options that are common for all entity types.
3 methods override flag_entity::options()
- flag_comment::options in includes/
flag/ flag_comment.inc - Adds additional options that are common for all entity types.
- flag_node::options in includes/
flag/ flag_node.inc - Adds additional options that are common for all entity types.
- flag_user::options in includes/
flag/ flag_user.inc - Adds additional options that are common for all entity types.
File
- includes/
flag/ flag_entity.inc, line 15 - Contains the flag_entity class.
Class
- flag_entity
- Base entity flag handler.
Code
function options() {
$options = parent::options();
$options += array(
// Output the flag in the entity links.
// This is empty for now and will get overriden for different
// entities.
// @see hook_entity_view().
'show_in_links' => array(),
// Output the flag as individual pseudofields.
'show_as_field' => FALSE,
// Add a checkbox for the flag in the entity form.
// @see hook_field_attach_form().
'show_on_form' => FALSE,
'access_author' => '',
'show_contextual_link' => FALSE,
);
return $options;
}