function hook_flag_link in Flag 6.2
Same name and namespace in other branches
- 7.3 flag.api.php \hook_flag_link()
- 7.2 flag.api.php \hook_flag_link()
Return the link for the link types this module defines.
The type of link to be produced is given by $flag->link_type.
When Flag uses a link type provided by this module, it will call this implementation of hook_flag_link(). This should return 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 for the flag link being generated.
$action: The action this link should perform. Either 'flag' or 'unflag'.
$content_id: The ID of the node, comment, user, or other object being flagged. The type of the object can be deduced from the flag type.
Return value
An array defining properties of the link.
See also
1 function implements hook_flag_link()
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 in ./
flag.module - Implementation of hook_flag_link().
1 invocation of hook_flag_link()
- template_preprocess_flag in ./
flag.module - A preprocess function for our theme('flag'). It generates the variables needed there.
File
- ./
flag.api.php, line 206 - Hooks provided by the Flag module.
Code
function hook_flag_link() {
}