function flag_entity::options in Flag 7.2
Same name and namespace in other branches
- 7.3 includes/flag/flag_entity.inc \flag_entity::options()
Adds additional options that are common for all entity types.
3 calls to flag_entity::options()
- flag_comment::options in ./
flag.inc - Adds additional options that are common for all entity types.
- flag_node::options in ./
flag.inc - Adds additional options that are common for all entity types.
- flag_user::options in ./
flag.inc - Adds additional options that are common for all entity types.
3 methods override flag_entity::options()
- flag_comment::options in ./
flag.inc - Adds additional options that are common for all entity types.
- flag_node::options in ./
flag.inc - Adds additional options that are common for all entity types.
- flag_user::options in ./
flag.inc - Adds additional options that are common for all entity types.
File
- ./
flag.inc, line 1336 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_entity
- Base entity flag handler.
Code
function options() {
$options = parent::options();
$options += array(
// Output the flag in the entity links.
// @see hook_entity_view().
'show_on_entity' => TRUE,
// Add a checkbox for the flag in the entity form.
// @see hook_field_attach_form().
'show_on_form' => FALSE,
'access_author' => '',
);
return $options;
}