The Flag module is an incredibly flexible module that can be used to do things like bookmark content, flag content as offensive and mark content as favorite content. When you learn how it works, you’ll find uses for it again and again because it allows you to create an incredibly flexible flagging system on your Drupal site. In this series, we’ll explore the three scenarios that I just mentioned.

First, we’ll create a “Bookmark” flag that allows users to bookmark content on the site for future reference.

Then, we’ll see how to flag content as offensive, and use the Rules module to automatically unpublish content that has been flagged five times, as well as how to remove all flags when a Content Moderator edits the offensive content.

Finally, we’ll see how to use the Flag module to mark content as favorites, and display each user’s favorite content on their profile page for all to see. As well as create a block and page that list the most favorited content site-wide.