flag.module

Version 1.11.2.78 (checked in on 2010/01/08 at 04:47:21 by quicksketch)

The Flag module.

Functions

NameDescription
flagFlags or unflags an item.
flag_accessAccess checking to check an account for flagging ability.
flag_check_tokenCheck to see if a token value matches the specified node.
flag_confirmForm for confirming the (un)flagging of a piece of content.
flag_confirm_submit
flag_content_enabledContent type checking to see if a flag applies to a certain type of data.
flag_content_extra_fieldsImplementation of hook_content_extra_fields().
flag_create_linkA utility function for outputting a flag link.
flag_flagImplementation of hook_flag(). Trigger actions if any are available.
flag_flag_linkImplementation of hook_flag_link().
flag_flag_link_typesImplementation of hook_flag_link_types().
flag_form_alterImplementation of hook_form_alter().
flag_get_content_flagsReturn a list of users who have flagged a piece of content.
flag_get_countsGet flag counts for all flags on a node.
flag_get_default_flagsRetrieve a list of flags defined by modules.
flag_get_flagLoad a single flag either by name or by flag ID.
flag_get_flagsList all flags available.
flag_get_link_typesReturn an array of link types provided by modules.
flag_get_tokenGet a private token used to protect links from spoofing - CSRF.
flag_get_user_flagsFind what a user has flagged, either a single node or on the entire site.
flag_initImplementation of hook_init().
flag_linkImplementation of hook_link().
flag_mailImplementation of hook_mail().
flag_menuImplementation of hook_menu().
flag_nodeapiImplementation of hook_nodeapi().
flag_nodesCallback function for hook_node_operations().
flag_node_operationsImplementation of hook_node_operations().
flag_node_typeImplementation of hook_node_type().
flag_pageMenu callback for (un)flagging a node.
flag_permImplementation of hook_perm().
flag_themeImplementation of hook_theme().
flag_userImplementation of hook_user().
flag_views_apiImplementation of hook_views_api().
template_preprocess_flagA preprocess function for our theme('flag'). It generates the variables needed there.
_flag_format_pluralFormat a string containing a count of items.
_flag_get_flag_namesReturn an array of flag names keyed by fid.
_flag_link_type_optionsReturn an array of flag link types suitable for a select list or radios.