Functions to define and modify content types.
Each content type is maintained by a primary module, which is either node.module (for content types created in the user interface) or the module that implements hook_node_info() to define the content type.
During node operations (create, update, view, delete, etc.), there are several sets of hooks that get invoked to allow modules to modify the base node operation:
Here is a list of the node and entity hooks that are invoked, field operations, and other steps that take place during node operations:
| Name | Description |
|---|---|
| hook_delete | Respond to node deletion. |
| hook_form | Display a node editing form. |
| hook_insert | Respond to creation of a new node. |
| hook_load | Act on nodes being loaded from the database. |
| hook_node_delete | Respond to node deletion. |
| hook_node_info | Define module-provided node types. |
| hook_node_insert | Respond to creation of a new node. |
| hook_node_load | Act on nodes being loaded from the database. |
| hook_node_prepare | Act on a node object about to be shown on the add/edit form. |
| hook_node_presave | Act on a node being inserted or updated. |
| hook_node_revision_delete | Respond to deletion of a node revision. |
| hook_node_search_result | Act on a node being displayed as a search result. |
| hook_node_submit | Act on a node after validated form values have been copied to it. |
| hook_node_update | Respond to updates to a node. |
| hook_node_update_index | Act on a node being indexed for searching. |
| hook_node_validate | Perform node validation before a node is created or updated. |
| hook_node_view | Act on a node that is being assembled before rendering. |
| hook_node_view_alter | Alter the results of node_view(). |
| hook_prepare | Act on a node object about to be shown on the add/edit form. |
| hook_ranking | Provide additional methods of scoring for core search results for nodes. |
| hook_update | Respond to updates to a node. |
| hook_validate | Perform node validation before a node is created or updated. |
| hook_view | Display a node. |
drupal/