You are here

function hook_flag_link_types in Flag 7.2

Same name and namespace in other branches
  1. 6.2 flag.api.php \hook_flag_link_types()

Define one or more flag link types.

Link types defined here must be returned by this module's hook_flag_link().

Return value

An array of one or more types, keyed by the machine name of the type, and where each value is a link type definition as an array with the following properties:

  • 'title': The human-readable name of the type.
  • 'description': The description of the link type.
  • 'options': An array of extra options for the link type.
  • 'uses standard js': Boolean, indicates whether the link requires Flag module's own JS file for links.
  • 'uses standard css': Boolean, indicates whether the link requires Flag module's own CSS file for links.

See also

flag_get_link_types()

hook_flag_link_types_alter()

1 function implements hook_flag_link_types()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

flag_flag_link_types in ./flag.module
Implements hook_flag_link_types().
1 invocation of hook_flag_link_types()
flag_get_link_types in ./flag.module
Return an array of link types provided by modules.

File

./flag.api.php, line 165
Hooks provided by the Flag module.

Code

function hook_flag_link_types() {
}