Example using NodeAPI.
This is an example demonstrating how a module can be used to extend existing node 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.
See also
Parent topics
File
- modules/
examples/ nodeapi_example/ nodeapi_example.module, line 8 - Module implementation for nodeapi_example module.
Functions
Classes
Name![]() |
Location | Description |
---|---|---|
NodeApiExampleTestCase |
modules/ |
Functional tests for the NodeAPI Example module. |