summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index b0c3bb744..f32625b8e 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -555,6 +555,9 @@ function node_type_save($info) {
* A node type object.
* @param $label
* The label for the body instance.
+ *
+ * @return
+ * Body field instance.
*/
function node_add_body_field($type, $label = 'Body') {
// Add or remove the body field, as needed.
@@ -588,8 +591,9 @@ function node_add_body_field($type, $label = 'Body') {
),
),
);
- field_create_instance($instance);
+ $instance = field_create_instance($instance);
}
+ return $instance;
}
/**