Commit 0bcae99c authored by catch's avatar catch
Browse files

Issue #629518 by jhodgdon, reglogge, jvns: Fixed node hooks have imprecise/misleading descriptions.

parent f9be1f55
...@@ -1237,9 +1237,12 @@ function hook_validate($node, $form, &$form_state) { ...@@ -1237,9 +1237,12 @@ function hook_validate($node, $form, &$form_state) {
/** /**
* Display a node. * Display a node.
* *
* This is a hook used by node modules. It allows a module to define a * This hook is invoked only on the module that defines the node's content type
* custom method of displaying its nodes, usually by displaying extra * (use hook_node_view() to act on all node views).
* information particular to that node type. *
* This hook is invoked during node viewing after the node is fully loaded,
* so that the node type module can define a custom method for display, or
* add to the default display.
* *
* @param $node * @param $node
* The node to be displayed, as returned by node_load(). * The node to be displayed, as returned by node_load().
...@@ -1258,8 +1261,6 @@ function hook_validate($node, $form, &$form_state) { ...@@ -1258,8 +1261,6 @@ function hook_validate($node, $form, &$form_state) {
* view of the node, you might consider implementing one of these hooks * view of the node, you might consider implementing one of these hooks
* instead. * instead.
* *
* For a detailed usage example, see node_example.module.
*
* @ingroup node_api_hooks * @ingroup node_api_hooks
*/ */
function hook_view($node, $view_mode) { function hook_view($node, $view_mode) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment