summaryrefslogtreecommitdiff
path: root/modules/file/file.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-24 07:39:03 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-24 07:39:03 +0000
commitcc35d98859328ab23dc8186a6a3bf88c0dd3c3a6 (patch)
tree58c0aa483000a4299ca9af0cbb2209edbe5df83e /modules/file/file.module
parent32566aaee47a42724abae9ffda9f20e4d479c835 (diff)
downloadbrdo-cc35d98859328ab23dc8186a6a3bf88c0dd3c3a6.tar.gz
brdo-cc35d98859328ab23dc8186a6a3bf88c0dd3c3a6.tar.bz2
- Patch #750990 by quicksketch, moshe weitzman: missing cleanup of deleted images.
Diffstat (limited to 'modules/file/file.module')
-rw-r--r--modules/file/file.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/file/file.module b/modules/file/file.module
index 49a1b94fa..d0f95cfb8 100644
--- a/modules/file/file.module
+++ b/modules/file/file.module
@@ -323,7 +323,7 @@ function file_progress_implementation() {
* Implements hook_file_references().
*/
function file_file_references($file) {
- $count = file_get_file_reference_count($file);
+ $count = file_get_file_reference_count($file, NULL, 'file');
return $count ? array('file' => $count) : NULL;
}
@@ -883,7 +883,7 @@ function file_icon_map($file) {
* @return
* An integer value.
*/
-function file_get_file_reference_count($file, $field = NULL, $field_type = 'file') {
+function file_get_file_reference_count($file, $field = NULL, $field_type = NULL) {
// Determine the collection of fields to check.
if (isset($field)) {
// Support $field as 'field name'.