Commit bfec01ac authored by Arthur's avatar Arthur Committed by Bec White
Browse files

refs #838 adds the new fields to the default view

parent 9d8d1cb0
...@@ -7,12 +7,10 @@ function workbench_files_views_default_views() { ...@@ -7,12 +7,10 @@ function workbench_files_views_default_views() {
$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.';
$view->tag = 'Workbench'; $view->tag = 'Workbench';
$view->view_php = '';
$view->base_table = 'file_managed'; $view->base_table = 'file_managed';
$view->is_cacheable = FALSE;
$view->api_version = '3.0-alpha1'; $view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Defaults */ /* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default'); $handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['access']['type'] = 'none'; $handler->display->display_options['access']['type'] = 'none';
...@@ -147,6 +145,23 @@ function workbench_files_views_default_views() { ...@@ -147,6 +145,23 @@ function workbench_files_views_default_views() {
$handler->display->display_options['fields']['title']['hide_empty'] = 1; $handler->display->display_options['fields']['title']['hide_empty'] = 1;
$handler->display->display_options['fields']['title']['empty_zero'] = 0; $handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1; $handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Field: File: Path */
$handler->display->display_options['fields']['uri_1']['id'] = 'uri_1';
$handler->display->display_options['fields']['uri_1']['table'] = 'file_managed';
$handler->display->display_options['fields']['uri_1']['field'] = 'uri';
$handler->display->display_options['fields']['uri_1']['label'] = 'filepath';
$handler->display->display_options['fields']['uri_1']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['uri_1']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['uri_1']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['uri_1']['alter']['trim'] = 0;
$handler->display->display_options['fields']['uri_1']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['uri_1']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['uri_1']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['uri_1']['alter']['html'] = 0;
$handler->display->display_options['fields']['uri_1']['hide_empty'] = 0;
$handler->display->display_options['fields']['uri_1']['empty_zero'] = 0;
$handler->display->display_options['fields']['uri_1']['link_to_file'] = 0;
$handler->display->display_options['fields']['uri_1']['file_download_path'] = 0;
/* Sort criterion: File: Upload date */ /* Sort criterion: File: Upload date */
$handler->display->display_options['sorts']['timestamp']['id'] = 'timestamp'; $handler->display->display_options['sorts']['timestamp']['id'] = 'timestamp';
$handler->display->display_options['sorts']['timestamp']['table'] = 'file_managed'; $handler->display->display_options['sorts']['timestamp']['table'] = 'file_managed';
...@@ -161,7 +176,7 @@ function workbench_files_views_default_views() { ...@@ -161,7 +176,7 @@ function workbench_files_views_default_views() {
$handler->display->display_options['filters']['filename']['expose']['label'] = 'File name'; $handler->display->display_options['filters']['filename']['expose']['label'] = 'File name';
$handler->display->display_options['filters']['filename']['expose']['identifier'] = 'filename'; $handler->display->display_options['filters']['filename']['expose']['identifier'] = 'filename';
$handler->display->display_options['filters']['filename']['case'] = 1; $handler->display->display_options['filters']['filename']['case'] = 1;
/* Display: Page */ /* Display: Page */
$handler = $view->new_display('page', 'Page', 'page_1'); $handler = $view->new_display('page', 'Page', 'page_1');
$handler->display->display_options['path'] = 'admin/config/workbench/page/files'; $handler->display->display_options['path'] = 'admin/config/workbench/page/files';
...@@ -169,7 +184,7 @@ function workbench_files_views_default_views() { ...@@ -169,7 +184,7 @@ function workbench_files_views_default_views() {
$handler->display->display_options['menu']['title'] = 'File List'; $handler->display->display_options['menu']['title'] = 'File List';
$handler->display->display_options['menu']['description'] = 'List of all files uploaded to this site.'; $handler->display->display_options['menu']['description'] = 'List of all files uploaded to this site.';
$handler->display->display_options['menu']['weight'] = '0'; $handler->display->display_options['menu']['weight'] = '0';
$views[$view->name] = $view;
return $views; return $views;
} }
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