Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
2f0358b6
Commit
2f0358b6
authored
Feb 11, 2010
by
Dries
Browse files
- Patch
#708974
by jhodgdon: follow-up patch to correct some documentation mistakes.
parent
071544d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.api.php
View file @
2f0358b6
...
...
@@ -22,13 +22,13 @@
* node operation:
* - Node-type-specific hooks: These hooks are only invoked on the primary
* module, using the "base" return component of hook_node_info() as the
* function prefix. For example,
blog
.module defines the base for the
Blog
* content type as "
blog
", so during creation of a
blog
node, hook_insert() is
* only invoked by calling
blog
_insert().
* function prefix. For example,
poll
.module defines the base for the
Poll
* content type as "
poll
", so during creation of a
poll
node, hook_insert() is
* only invoked by calling
poll
_insert().
* - All-module hooks: This set of hooks is invoked on all implementing
* modules, to allow other modules to modify what the primary node module is
* doing. For example, hook_node_insert() is invoked on all modules when
* creating a
blog
node.
* creating a
poll
node.
* - Field hooks: Hooks related to the fields attached to the node. These are
* invoked from the field operations functions described below, and can be
* either field-type-specific or all-module hooks.
...
...
@@ -69,14 +69,14 @@
* done):
* - hook_view() (node-type-specific)
* - field_attach_prepare_view()
* - hook_entity_prepare_view()
* - hook_entity_prepare_view()
(all)
* - field_attach_view()
* - hook_node_view() (all)
* - Viewing multiple nodes (calling node_view_multiple() - note that the input
* to node_view_multiple() is a set of loaded nodes, so the Loading steps
* above are already done):
* - field_attach_prepare_view()
* - hook_entity_prepare_view()
* - hook_entity_prepare_view()
(all)
* - hook_view() (node-type-specific)
* - field_attach_view()
* - hook_node_view() (all)
...
...
@@ -96,8 +96,8 @@
* an existing node, it will already be loaded; see the Loading section
* above):
* - hook_prepare() (node-type-specific)
* - hook_node_prepare() (all); if translation.module is enabled,
*
this will
also invoke hook_node_prepare_translation() on all modules.
* - hook_node_prepare() (all); if translation.module is enabled,
this will
* also invoke hook_node_prepare_translation() on all modules.
* - hook_form() (node-type-specific)
* - field_attach_form()
* - Validating a node during editing form submit (calling
...
...
@@ -110,7 +110,7 @@
* - Query is executed to find matching nodes
* - Resulting node is loaded (see Loading section above)
* - Resulting node is prepared for viewing (see Viewing a single node above)
* - comment_node_update_index()
and taxonomy_node_update_index() are
called
* - comment_node_update_index()
is
called
.
* - hook_node_search_result() (all)
* - Search indexing (calling node_update_index()):
* - Node is loaded (see Loading section above)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment