You are here

function flag_lists_flag_link in Flag Lists 6

Same name and namespace in other branches
  1. 7.3 flag_lists.module \flag_lists_flag_link()
  2. 7 flag_lists.module \flag_lists_flag_link()

Implementation of hook_flag_link().

When Flag uses a link type provided by this module, it will call this implementation of hook_flag_link(). It returns a single link's attributes, using the same structure as hook_link(). Note that "title" is provided by the Flag configuration if not specified here.

Parameters

$flag: The full flag object of for the flag link being generated.

$action: The action this link will perform. Either 'flag' or 'unflag'.

$content_id: The ID of the node, comment, user, or other object being flagged.

Return value

An array defining properties of the link.

File

./flag_lists.module, line 776
The Flag Lists module.

Code

function flag_lists_flag_link($flag, $action, $content_id) {
  return array();
}