I've had a request for a component that creates the code for an admin configuration form, so:

- hook_menu()
- menu item definition in hook_menu()
- a form builder in MODULE.admin.inc
- form validation handler
- form submit handler, using system_settings_form()
- line in .info file giving the config path

That's going to be tying quite a few components together, as we need to:

- force hook_menu()
- add to hook_menu()'s code
- add a line to the .info file

Fortunately, we already have .info files made last IIRC. For hook_menu(), some replumbing may be necessary!

Comments

joachim’s picture

duckydan’s picture

Issue summary: View changes

This would be so great to have!!!

joachim’s picture

Status: Active » Fixed

Done!

This is in the UI as a new checkbox.

I still need to document this in drush, but it's: 'drush mb foo settings_form!'

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.