Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
workbench_files
Commits
942b7b45
Commit
942b7b45
authored
Mar 02, 2011
by
Ken Rickard
Browse files
coder updates to wfiles
parent
2ec2ad0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
views/workbench_files.view.inc
views/workbench_files.view.inc
+5
-0
workbench_files.module
workbench_files.module
+1
-1
No files found.
views/workbench_files.view.inc
View file @
942b7b45
<?php
/**
* @file
* Default View for displaying file list.
*/
$view
=
new
view
;
$view
->
name
=
'workbench_files'
;
$view
->
description
=
'A list of all the files uploaded to the site, and nodes they appear on.'
;
...
...
workbench_files.module
View file @
942b7b45
...
...
@@ -30,7 +30,7 @@ function workbench_files_preprocess_views_view_table(&$vars) {
// Custom handling for the workbench files view
if
(
$vars
[
'view'
]
->
name
==
'workbench_files'
)
{
foreach
(
$vars
[
'rows'
]
as
$id
=>
$row
)
{
foreach
(
$vars
[
'rows'
]
as
$id
=>
$row
)
{
// Is this file an image?
if
(
strstr
(
file_get_mimetype
(
$row
[
'uri'
]),
'image'
))
{
// Is this file on the local file system?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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