Drupal 7 Module Development Tutorial #10 - Drupal's Hook_Form_Alter and Variable_Set

In the 10th tutorial of this 10 part video tutorial series, I show you how we can use Drupal's hook_form_alter to create some custom flag settings for our module. Specifically, we want to allow administrators to disable flags once an application has been approved. To do so, we need to add some settings to our configuration page.

Originally, I was just going to show you how to do this with the Flag API, however, I decided to record an 11th video tutorial and take some time to show you how you could achieve similar results using Drupal's function variable_get and variable_set if you didn't have the Flag API. 

In the final video tutorial, I show you how we change the flag link.