Commit 942b7b45 authored by Ken Rickard's avatar Ken Rickard
Browse files

coder updates to wfiles

parent 2ec2ad0c
<?php <?php
/**
* @file
* Default View for displaying file list.
*/
$view = new view; $view = new view;
$view->name = 'workbench_files'; $view->name = 'workbench_files';
$view->description = 'A list of all the files uploaded to the site, and nodes they appear on.'; $view->description = 'A list of all the files uploaded to the site, and nodes they appear on.';
......
...@@ -30,7 +30,7 @@ function workbench_files_preprocess_views_view_table(&$vars) { ...@@ -30,7 +30,7 @@ function workbench_files_preprocess_views_view_table(&$vars) {
// Custom handling for the workbench files view // Custom handling for the workbench files view
if ($vars['view']->name == 'workbench_files') { if ($vars['view']->name == 'workbench_files') {
foreach($vars['rows'] as $id => $row) { foreach ($vars['rows'] as $id => $row) {
// Is this file an image? // Is this file an image?
if (strstr(file_get_mimetype($row['uri']), 'image')) { if (strstr(file_get_mimetype($row['uri']), 'image')) {
// Is this file on the local file system? // Is this file on the local file system?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment