You are here

function hook_flag_link_type_info in Flag 7.3

Define one or more flag link types.

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

This hook may be placed in a $module.flag.inc file.

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.
  • 'provides form': (optional) Boolean indicating that this link type shows the user a flagging entity form. This property is used in the UI, eg to warn the admin user of link types that are not compatible with other flag options. Defaults to FALSE.

See also

flag_get_link_types()

hook_flag_link_type_info_alter()

1 function implements hook_flag_link_type_info()

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_type_info in ./flag.flag.inc
Implements hook_flag_link_type_info().
1 invocation of hook_flag_link_type_info()
flag_get_link_types in ./flag.module
Return an array of link types provided by modules.

File

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

Code

function hook_flag_link_type_info() {
}