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, insert, 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 | Location | Description |
---|---|---|
hook_view |
drupal/ |
Display a node. |
hook_validate |
drupal/ |
Perform node validation before a node is created or updated. |
hook_update |
drupal/ |
Respond to updates to a node. |
hook_ranking |
drupal/ |
Provide additional methods of scoring for core search results for nodes. |
hook_prepare |
drupal/ |
Act on a node object about to be shown on the add/edit form. |
hook_node_view_alter |
drupal/ |
Alter the results of node_view(). |
hook_node_view |
drupal/ |
Act on a node that is being assembled before rendering. |
hook_node_validate |
drupal/ |
Perform node validation before a node is created or updated. |
hook_node_update_index |
drupal/ |
Act on a node being indexed for searching. |
hook_node_update |
drupal/ |
Respond to updates to a node. |
hook_node_submit |
drupal/ |
Act on a node after validated form values have been copied to it. |
hook_node_search_result |
drupal/ |
Act on a node being displayed as a search result. |
hook_node_revision_delete |
drupal/ |
Respond to deletion of a node revision. |
hook_node_presave |
drupal/ |
Act on a node being inserted or updated. |
hook_node_prepare |
drupal/ |
Act on a node object about to be shown on the add/edit form. |
hook_node_predelete |
drupal/ |
Act before node deletion. |
hook_node_load |
drupal/ |
Act on arbitrary nodes being loaded from the database. |
hook_node_insert |
drupal/ |
Respond to creation of a new node. |
hook_node_info |
drupal/ |
Define module-provided node types. |
hook_node_delete |
drupal/ |
Respond to node deletion. |
hook_node_create |
drupal/ |
Act on a newly created node. |
hook_load |
drupal/ |
Act on nodes being loaded from the database. |
hook_insert |
drupal/ |
Respond to creation of a new node. |
hook_form |
drupal/ |
Display a node editing form. |
hook_delete |
drupal/ |
Respond to node deletion. |