You are here

README.txt in Module Builder 5

Same filename and directory in other branches
  1. 8.3 README.txt
  2. 6.2 README.txt
  3. 7.2 README.txt
  4. 7 README.txt
Welcome to module_builder.module! This is an early prototype of a 
module designed to help expedite the process of creating custom 
modules. Simply fill out the form, select the hooks you want and the 
script will automatically generate a skeleton module file for you, 
along with PHPDoc comments and function definitions.

FEATURES
--------
* Automatically parses available hook names from CVS at your command...
  so help keep those files updated, won't you? ;)
* Comes with some sample standard hook function declarations to get 
  you started and a default module header; but if you don't like those,
  simply rename the .template files to -custom.template instead and 
  create your own definitions!
* Saves you the trouble of looking at drupaldocs.org 50 times a day to 
  remember what arguments and what order different hooks use. Score one
  for laziness! ;)
* Automatically selects hooks based on your needs.
* Option allows you to turn off informative comments.

INSTALL/CONFIG
--------------
1. Move this folder into your modules/ directory like you would any 
   other module.
2. Enable it from administer >> modules.
3. Go to administer >> settings >> module_builder and specify the path
   to save the hook documentation files
4. The first time you visit the module builder form, the module will 
   retrieve hook documentation from cvs.drupal.org and store it locally. 
   When you want to update this documentation later on, return to the 
   settings page and click the "Update" button.
5. (Optional) Create custom function declaration template file(s) if you
   don't like the default output.
6. (Optional) Create your own hook groupings if you don't like the 
   default ones.

USING THE MODULE
----------------
1. Click the "module_builder" link in the menu (note: you will require
   'access module builder' privileges to see this link)
2. Enter a module name, description, and so on.
3. Select from one of the available hook groupings to automatically 
   select hook choices for you, or expand the fieldsets and choose
   hooks individually.
4. Click the "Submit" button and watch your module's code generated
   before your eyes! ;)
5. Copy and paste the code into a files called <your_module>.module,
   <your_module>.info and <your_module>.install and save them to
   a <your_module> directory under one of the modules directories.
6. Start customizing it to your needs; most of the tedious work is 
   already done for you! ;)

TODO/WISHLIST
-------------
* Maybe some nicer theming/swooshy boxes on hook descriptions or 
  something to make the form look nicer/less cluttered
* I would like to add the option to import help text from a Drupal.org
  handbook page, to help encourage authors to write standardized 
  documentation in http://www.drupal.org/handbook/modules/

KNOWN ISSUES
------------
* Can't set default values in PHP 5 for some strange reason
* Fieldsets in Opera look mondo bizarr-o

CONTRIBUTORS
------------
* Owen Barton (grugnog2), Chad Phillips (hunmonk), and Chris Johnson 
  (chrisxj) for initial brainstorming stuff @ OSCMS in Vancouver
* Jeff Robbins for the nice mockup to work from and some great suggestions
* Karthik/Zen/|gatsby| for helping debug some hairy Forms API issues
* Steven Wittens and David Carrington for their nice JS checkbox magic
* jsloan for the excellent "automatically generate module file" feature
* Folks who have submitted bug reports and given encouragement, thank you
  so much! :)

File

README.txt
View source
  1. Welcome to module_builder.module! This is an early prototype of a
  2. module designed to help expedite the process of creating custom
  3. modules. Simply fill out the form, select the hooks you want and the
  4. script will automatically generate a skeleton module file for you,
  5. along with PHPDoc comments and function definitions.
  6. FEATURES
  7. --------
  8. * Automatically parses available hook names from CVS at your command...
  9. so help keep those files updated, won't you? ;)
  10. * Comes with some sample standard hook function declarations to get
  11. you started and a default module header; but if you don't like those,
  12. simply rename the .template files to -custom.template instead and
  13. create your own definitions!
  14. * Saves you the trouble of looking at drupaldocs.org 50 times a day to
  15. remember what arguments and what order different hooks use. Score one
  16. for laziness! ;)
  17. * Automatically selects hooks based on your needs.
  18. * Option allows you to turn off informative comments.
  19. INSTALL/CONFIG
  20. --------------
  21. 1. Move this folder into your modules/ directory like you would any
  22. other module.
  23. 2. Enable it from administer >> modules.
  24. 3. Go to administer >> settings >> module_builder and specify the path
  25. to save the hook documentation files
  26. 4. The first time you visit the module builder form, the module will
  27. retrieve hook documentation from cvs.drupal.org and store it locally.
  28. When you want to update this documentation later on, return to the
  29. settings page and click the "Update" button.
  30. 5. (Optional) Create custom function declaration template file(s) if you
  31. don't like the default output.
  32. 6. (Optional) Create your own hook groupings if you don't like the
  33. default ones.
  34. USING THE MODULE
  35. ----------------
  36. 1. Click the "module_builder" link in the menu (note: you will require
  37. 'access module builder' privileges to see this link)
  38. 2. Enter a module name, description, and so on.
  39. 3. Select from one of the available hook groupings to automatically
  40. select hook choices for you, or expand the fieldsets and choose
  41. hooks individually.
  42. 4. Click the "Submit" button and watch your module's code generated
  43. before your eyes! ;)
  44. 5. Copy and paste the code into a files called .module,
  45. .info and .install and save them to
  46. a directory under one of the modules directories.
  47. 6. Start customizing it to your needs; most of the tedious work is
  48. already done for you! ;)
  49. TODO/WISHLIST
  50. -------------
  51. * Maybe some nicer theming/swooshy boxes on hook descriptions or
  52. something to make the form look nicer/less cluttered
  53. * I would like to add the option to import help text from a Drupal.org
  54. handbook page, to help encourage authors to write standardized
  55. documentation in http://www.drupal.org/handbook/modules/
  56. KNOWN ISSUES
  57. ------------
  58. * Can't set default values in PHP 5 for some strange reason
  59. * Fieldsets in Opera look mondo bizarr-o
  60. CONTRIBUTORS
  61. ------------
  62. * Owen Barton (grugnog2), Chad Phillips (hunmonk), and Chris Johnson
  63. (chrisxj) for initial brainstorming stuff @ OSCMS in Vancouver
  64. * Jeff Robbins for the nice mockup to work from and some great suggestions
  65. * Karthik/Zen/|gatsby| for helping debug some hairy Forms API issues
  66. * Steven Wittens and David Carrington for their nice JS checkbox magic
  67. * jsloan for the excellent "automatically generate module file" feature
  68. * Folks who have submitted bug reports and given encouragement, thank you
  69. so much! :)