summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-27 05:52:50 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-27 05:52:50 +0000
commit7d4b84b8789ffd3ad22dc987860f46c18f9d0f07 (patch)
treea5e7429b505f079ea6e0938f4f7773719200c915 /modules/node/node.module
parentf86fda29a3e004e7e38a5d039aa0869a5bd6d888 (diff)
downloadbrdo-7d4b84b8789ffd3ad22dc987860f46c18f9d0f07.tar.gz
brdo-7d4b84b8789ffd3ad22dc987860f46c18f9d0f07.tar.bz2
#707724 follow-up by yched: Fix more confusing field/entity api arguments.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 1b5596be3..68a7c2f6d 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -183,7 +183,7 @@ function node_entity_info() {
'revision table' => 'node_revision',
'uri callback' => 'node_uri',
'fieldable' => TRUE,
- 'object keys' => array(
+ 'entity keys' => array(
'id' => 'nid',
'revision' => 'vid',
'bundle' => 'type',
@@ -563,7 +563,7 @@ function node_configure_fields($type) {
$field = array(
'field_name' => 'body',
'type' => 'text_with_summary',
- 'object_types' => array('node'),
+ 'entity_types' => array('node'),
'translatable' => TRUE,
);
$field = field_create_field($field);
@@ -571,7 +571,7 @@ function node_configure_fields($type) {
if (empty($instance)) {
$instance = array(
'field_name' => 'body',
- 'object_type' => 'node',
+ 'entity_type' => 'node',
'bundle' => $type->type,
'label' => $type->body_label,
'widget_type' => 'text_textarea_with_summary',