Drupal 7 hook menu validating argument from url

In many modules there is one common generic menu callback function, which responds to multiple menu items.

In this article we are going to see some of these functionalities and learn how you could use them in your Drupal module.Use the field collection module to add new collections here admin/structure/field-collections.You ll notice it is also an entity so add fields like you add fields to other entities like nodes.Drupal module developers can map paths to Drupal functions by implementing hook_menu(), which adds paths to the menu system, assigns them access rules, and optionally creates navigational elements for them.For our module we will need to implement two new pages—a configuration page for the User Warn module, and a tab in the user profile area where administrators can go to send the actual e-mails to a specific user.

Leave a Reply