Understanding the development of Drupal's module is also equals to understand a concept of node (content type), a hook system (callback function named 'hook'), and a form ($form).
I have already explained Drupal's hook system in "Drupal: a Minimum Set of Hooks to Develop a Module". So let me try to implement a module concretely here. The module name is 'hook'.
It is necessary to implement a module with four files such as yourmodule.info, yourmodule.install, yourmodule.module, yourmodule.css since Drupal 5. Therefore, in case of a developement of a module called 'hook', those four files must be created. This hook module includes a set of fields such as a title, a body and a unique value hid (= hook ID) with one of letters from 'A' to 'E' in this 'hook' module. A letter 'A' to 'E' to be displayed will be stored the corresponding a value from one to five in a database. The default value of hid can be set in https://yourdomain.com/admin/settings/hook. The following is an example of the 'hook' module.
Understanding the development of Drupal's module is also equals to understand a concept of node (content type), a hook system (callback function named 'hook'), and a form ($form).
I have already explained Drupal's hook system in "Drupal: a Minimum Set of Hooks to Develop a Module". So let me try to implement a module concretely here. The module name is 'hook'.
It is necessary to implement a module with four files such as yourmodule.info, yourmodule.install, yourmodule.module, yourmodule.css since Drupal 5. Therefore, in case of a developement of a module called 'hook', those four files must be created. This hook module includes a set of fields such as a title, a body and a unique value hid (= hook ID) with one of letters from 'A' to 'E' in this 'hook' module. A letter 'A' to 'E' to be displayed will be stored the corresponding a value from one to five in a database. The default value of hid can be set in https://yourdomain.com/admin/settings/hook. The following is an example of the 'hook' module.