Version 1.5 (checked in on 2010/12/10 at 06:49:28 by rfay)
This is an example outlining how a module can be used to extend existing content types.
We will add the ability for each node to have a "rating," which will be a number from one to five. The rating will be tracked using the revision system also, so every node revision may have different rating values.
| Name | Description |
|---|---|
| nodeapi_example_form_alter | Implements hook_form_alter(). |
| nodeapi_example_node_delete | Implements hook_node_delete(). |
| nodeapi_example_node_insert | Implements hook_node_insert(). |
| nodeapi_example_node_load | Implements hook_node_load(). |
| nodeapi_example_node_update | Implements hook_node_update(). |
| nodeapi_example_node_validate | Implements hook_node_validate(). |
| nodeapi_example_node_view | Implements hook_view(). |
| nodeapi_example_theme | Implements hook_theme(). |
| theme_nodeapi_example_rating | A custom theme function. |