Drupal 7 Module Development Tutorial #9: Creating Permissions with Hook_Permission

In the 9th video tutorial of this 10 part Drupal video tutorial series, I show you how we can create permissions for our module and ensure only administrators can access our flag application admin form. To do so, we first implement hook_permission and then update our hook_menu implementation to pass in our permission name.

In the final tutorial, we'll finish our module off by finalizing the behaviour of our flag once it has been approved.