diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-12 05:38:10 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-12 05:38:10 +0000 |
commit | 3756cdd8c1a7ff2d14944fc4c4cb60346fa7f9e1 (patch) | |
tree | bfb1d8c87fde1249676913d040839d8c538c2e16 /modules/field/tests/field_test.storage.inc | |
parent | 7562a8efb36306e96bf4d13b1f97b4573809ab45 (diff) | |
download | brdo-3756cdd8c1a7ff2d14944fc4c4cb60346fa7f9e1.tar.gz brdo-3756cdd8c1a7ff2d14944fc4c4cb60346fa7f9e1.tar.bz2 |
#707724 follow-up by yched: More Field API/Entity API terminology clean-up.
Diffstat (limited to 'modules/field/tests/field_test.storage.inc')
-rw-r--r-- | modules/field/tests/field_test.storage.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/field/tests/field_test.storage.inc b/modules/field/tests/field_test.storage.inc index 1008009d0..617e3b6ae 100644 --- a/modules/field/tests/field_test.storage.inc +++ b/modules/field/tests/field_test.storage.inc @@ -254,19 +254,19 @@ function field_test_field_storage_query($field_id, $conditions, $count, &$cursor $field_data = $data[$field['id']]; $sub_table = $load_current ? 'current' : 'revisions'; - // We need to sort records by object type and object id. + // We need to sort records by entity type and entity id. usort($field_data[$sub_table], '_field_test_field_storage_query_sort_helper'); // Initialize results array. $return = array(); - $obj_count = 0; + $entity_count = 0; $rows_count = 0; $rows_total = count($field_data[$sub_table]); $skip = $cursor; $skipped = 0; foreach ($field_data[$sub_table] as $row) { - if ($count != FIELD_QUERY_NO_LIMIT && $obj_count >= $count) { + if ($count != FIELD_QUERY_NO_LIMIT && $entity_count >= $count) { break; } @@ -327,7 +327,7 @@ function field_test_field_storage_query($field_id, $conditions, $count, &$cursor if (!isset($return[$row->type][$id])) { $return[$row->type][$id] = entity_create_stub_entity($row->type, array($row->entity_id, $row->revision_id, $row->bundle)); - $obj_count++; + $entity_count++; } } else { @@ -349,7 +349,7 @@ function field_test_field_storage_query($field_id, $conditions, $count, &$cursor /** * Sort helper for field_test_field_storage_query(). * - * Sorts by object type and object id. + * Sorts by entity type and entity id. */ function _field_test_field_storage_query_sort_helper($a, $b) { if ($a->type == $b->type) { |