Archive
This section is for outdated documentation topics concerning flag module.
Flag Cookbook
This page holds various tips and ideas for specialized applications - feel free to add your own.
- Attaching fields to flags (Flag 3.x)
- Coding example: Limiting the number of flaggings per day
- Counting Flags within the API
- Giving, or revoking, permission to flag by implementing hook_flag_access()
- Having a "Please log in to flag" link
- How to edit Flags (Flags 3.x)
- How to reorder your Flagged content
- Placing a flag link on a page
- Using comment flags to restrict access
Flag and i18n
This page lists some issues with Flag's i18n support.
Flag content migration with Migrate module
The following example is pending the patch found at https://www.drupal.org/node/2503815
Flag-related projects
There are many modules that use or complement Flag.
Migrating from other modules
Here are recipes/ideas for migrating from other modules to Flag. Migrating from Signup A user has kindly provided instructions here.
Rules integration
Flag module provides integration with the Rules module. For this the "Actions" submodule is NOT needed. It only provides integration with
Step by Step: Making the Flag Module Work with Multi-Lingual Websites
The flag module can be used with the i18n package. It requires some extra configuration of the default module settings, but eventually you
Technical notes about "anonymous" flaggings when page caching is turned on
Starting with Flag 2.x, anonymous users too can flag items.
The Flag 2.x API (PHP)
[This page contains some random notes. When more material is gathered, it will be revised.]
The Flag 3.x API (PHP)
Contents:
The Flag API (JavaScript)
Sometimes we wish to carry out a JavaScript action after some content has been flagged (or unflagged).
Theming guide
Flagging and unflagging content is usually done by clicking links. These links are known as "flag links".
Using Flag with other modules
Check the version on each of these pages: they may be for Drupal 5, 6, or 7, and Flag 1, 2, or 3.
Using Views for listing flagged content
Displaying a list of flagged nodes is perhaps the most needed ability.
