summaryrefslogtreecommitdiff
path: root/modules/file/file.field.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-09-10 22:31:58 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-09-10 22:31:58 +0000
commitb47e68011f520ccadc2924e8240dc461f0c64fe7 (patch)
tree658261afcf0fa507637e468256441b7e488c8ea9 /modules/file/file.field.inc
parent0d8adb439d47d2f30fc0d4edee029f40d3145316 (diff)
downloadbrdo-b47e68011f520ccadc2924e8240dc461f0c64fe7.tar.gz
brdo-b47e68011f520ccadc2924e8240dc461f0c64fe7.tar.bz2
#569072 by rcross and yched: Clean field_attach_()* namespace by renaming and moving non-crud functions.
Diffstat (limited to 'modules/file/file.field.inc')
-rw-r--r--modules/file/file.field.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/file/file.field.inc b/modules/file/file.field.inc
index 12c1b600e..3552229b2 100644
--- a/modules/file/file.field.inc
+++ b/modules/file/file.field.inc
@@ -292,7 +292,7 @@ function file_field_update($obj_type, $object, $field, $instance, $langcode, &$i
}
// Delete items from original object.
- list($id, $vid, $bundle) = field_attach_extract_ids($obj_type, $object);
+ list($id, $vid, $bundle) = field_extract_ids($obj_type, $object);
$load_function = $obj_type . '_load';
$original = $load_function($id);
@@ -312,7 +312,7 @@ function file_field_update($obj_type, $object, $field, $instance, $langcode, &$i
* Implement hook_field_delete().
*/
function file_field_delete($obj_type, $object, $field, $instance, $langcode, &$items) {
- list($id, $vid, $bundle) = field_attach_extract_ids($obj_type, $object);
+ list($id, $vid, $bundle) = field_extract_ids($obj_type, $object);
foreach ($items as $delta => $item) {
// For hook_file_references(), remember that this is being deleted.
$item['file_field_name'] = $field['field_name'];