Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
cc35d988
Commit
cc35d988
authored
Mar 24, 2010
by
Dries Buytaert
Browse files
- Patch
#750990
by quicksketch, moshe weitzman: missing cleanup of deleted images.
parent
32566aae
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/file/file.module
View file @
cc35d988
...
...
@@ -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'.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment