Drupal 7 Module Development Tutorial #2 - Creating a Default Flag with the Flag API

In the second of ten Drupal video tutorials on custom module development, we begin by taking a look at the Flag API as we will be relying heavily on the Flag module for our custom work. In doing so, we call a flag hook which creates a default flag, flag application. Using the Flag UI, we are able to create the flag, get the associated code and update our .module file so that when our module is installed, it automatically creates the default flag application.