Drupal 7 Module Development Part 3 - Drupal Administration Forms - Daily Dose of Drupal Episode 18

preview_player
Показать описание
Learn how to create an administration form inside a Drupal module. In this episode we work with the Drupal 7 Form API to build out an administration section for a brand new module. This new module (called cronmonitor) will be completed in the next Daily Dose of Drupal episode (number 19).

In this episode you will learn:

- How to build a Drupal administration form inside a Drupal 7 module
- How to set the configure option inside your modules .info file
- How to implement hook_menu and hook_permission to create an administration page
- How to build the Drupal administration form using the Drupal 7 Form API and the system_settings_form function
Рекомендации по теме
Комментарии
Автор

Thanks! I had some trouble with the "Configure" shortcut not appeaing next to the module. It turned out to be because I needed to assign permissions for it to show it (even administrators didn't have access by default).

ZrednaZ
Автор

Great tutorials Shane.
I have a question regarding one specific issue I'm facing atm. I created a content type and I used a 'field collection' as a field. To display the data I created a View but, I am unable to add exposed filters to the fields that belong to that 'field collection' since I only get the nid for that collection, but not references to the fields within it.
Any suggestion or idea is welcome since this is killing me and can't move forward.
Greetings,
Eduardo

avlisodraude
Автор

This does not work for me :( It just shows same page like admin/config, i cant see cronmonitor. Why ? If i type admin/config/cronmonitor i get samepage as without cronmonitor in url ?

dimitrijenanusevski
Автор

I get this error: "Cannot use a scalar value as an array in form_builder() " where could this be coming from?

okpuesbye