Commit 0bcae99c authored by catch's avatar catch

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) {
/**
* Display a node.
*
* This is a hook used by node modules. It allows a module to define a
* custom method of displaying its nodes, usually by displaying extra
* information particular to that node type.
* This hook is invoked only on the module that defines the node's content type
* (use hook_node_view() to act on all node views).
*
* 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
* The node to be displayed, as returned by node_load().
......@@ -1258,8 +1261,6 @@ function hook_validate($node, $form, &$form_state) {
* view of the node, you might consider implementing one of these hooks
* instead.
*
* For a detailed usage example, see node_example.module.
*
* @ingroup node_api_hooks
*/
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