summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-05 22:18:50 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-05 22:18:50 +0000
commitd48a6deacb459f5315eb48628876601476986de8 (patch)
tree5a4e0efb178497f263a737629a5b1e0e62292d77
parenta3ca3f20cc9407b1421368534cae033c2fb33b0e (diff)
downloadbrdo-d48a6deacb459f5315eb48628876601476986de8.tar.gz
brdo-d48a6deacb459f5315eb48628876601476986de8.tar.bz2
- Patch #703078 by jhodgdon: fixed node_type_get_type() documentation.
-rw-r--r--modules/node/node.module22
1 files changed, 9 insertions, 13 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 1bbeefaa3..7d8289d9c 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -398,21 +398,17 @@ function node_type_get_types() {
/**
* Returns the node type of the passed node or node type string.
*
- *@param $node
+ * @param $node
* A node object or string that indicates the node type to return.
+ *
* @return
- * A single node type, as an object or FALSE if the node type is not found.
- * The node type is an array with following content:
- *
- * @code
- * array(
- * 'type' => 'Machine readable type name',
- * 'name' => 'Name of the node type',
- * 'base' => 'Indicates to which module this node type belongs',
- * 'description' => 'Description of the node type',
- * // ...
- * )
- * @endcode
+ * A single node type, as an object, or FALSE if the node type is not found.
+ * The node type is an object containing fields from hook_node_info() return
+ * values, as well as the field 'type' (the machine-readable type) and other
+ * fields used internally and defined in _node_types_build() and
+ * node_type_set_defaults().
+ *
+ * @see hook_node_info();
*/
function node_type_get_type($node) {
$type = _node_extract_type($node);