summaryrefslogtreecommitdiff
path: root/modules/file/file.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/file/file.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/file/file.module')
-rw-r--r--modules/file/file.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/file/file.module b/modules/file/file.module
index 0eba84715..84a006dd6 100644
--- a/modules/file/file.module
+++ b/modules/file/file.module
@@ -915,7 +915,7 @@ function file_get_file_reference_count($file, $field = NULL, $field_type = NULL)
if (isset($file->file_field_type) && isset($file->file_field_id)) {
if ($file->file_field_type == $entity_type) {
$info = entity_get_info($entity_type);
- $id = $types[$entity_type]['object keys']['id'];
+ $id = $types[$entity_type]['entity keys']['id'];
foreach ($type_references as $reference) {
if ($file->file_field_id == $reference->$id) {
$reference_count--;