[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/project/release/views/default_views/ -> project_release_files.view.php (source)

   1  <?php
   2  // $Id: project_release_files.view.php,v 1.1 2009/11/30 09:40:25 dww Exp $
   3  
   4  $view = new view;
   5  $view->name = 'project_release_files';
   6  $view->description = 'List of all files attached to a given release';
   7  $view->tag = 'Project release';
   8  $view->view_php = '';
   9  $view->base_table = 'files';
  10  $view->is_cacheable = FALSE;
  11  $view->api_version = 2;
  12  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  13  $handler = $view->new_display('default', 'Defaults', 'default');
  14  $handler->override_option('relationships', array(
  15    'nid' => array(
  16      'label' => 'Release node',
  17      'required' => 1,
  18      'id' => 'nid',
  19      'table' => 'project_release_file',
  20      'field' => 'nid',
  21      'relationship' => 'none',
  22    ),
  23  ));
  24  $handler->override_option('fields', array(
  25    'file_name' => array(
  26      'label' => 'Download',
  27      'alter' => array(
  28        'alter_text' => 0,
  29        'text' => '',
  30        'make_link' => 0,
  31        'path' => '',
  32        'link_class' => '',
  33        'alt' => '',
  34        'prefix' => '',
  35        'suffix' => '',
  36        'target' => '',
  37        'help' => '',
  38        'trim' => 0,
  39        'max_length' => '',
  40        'word_boundary' => 1,
  41        'ellipsis' => 1,
  42        'strip_tags' => 0,
  43        'html' => 0,
  44      ),
  45      'empty' => '',
  46      'hide_empty' => 0,
  47      'empty_zero' => 0,
  48      'link_to_file' => 1,
  49      'exclude' => 0,
  50      'id' => 'file_name',
  51      'table' => 'project_release_file',
  52      'field' => 'file_name',
  53      'relationship' => 'none',
  54    ),
  55    'filesize' => array(
  56      'label' => 'Size',
  57      'alter' => array(
  58        'alter_text' => 0,
  59        'text' => '',
  60        'make_link' => 0,
  61        'path' => '',
  62        'link_class' => '',
  63        'alt' => '',
  64        'prefix' => '',
  65        'suffix' => '',
  66        'target' => '',
  67        'help' => '',
  68        'trim' => 0,
  69        'max_length' => '',
  70        'word_boundary' => 1,
  71        'ellipsis' => 1,
  72        'strip_tags' => 0,
  73        'html' => 0,
  74      ),
  75      'empty' => '',
  76      'hide_empty' => 1,
  77      'empty_zero' => 0,
  78      'file_size_display' => 'formatted',
  79      'exclude' => 0,
  80      'id' => 'filesize',
  81      'table' => 'files',
  82      'field' => 'filesize',
  83      'relationship' => 'none',
  84    ),
  85    'filehash' => array(
  86      'label' => 'md5 hash',
  87      'alter' => array(
  88        'alter_text' => 0,
  89        'text' => '',
  90        'make_link' => 0,
  91        'path' => '',
  92        'link_class' => '',
  93        'alt' => '',
  94        'prefix' => '',
  95        'suffix' => '',
  96        'target' => '',
  97        'help' => '',
  98        'trim' => 0,
  99        'max_length' => '',
 100        'word_boundary' => 1,
 101        'ellipsis' => 1,
 102        'strip_tags' => 0,
 103        'html' => 0,
 104      ),
 105      'empty' => '',
 106      'hide_empty' => 1,
 107      'empty_zero' => 0,
 108      'exclude' => 0,
 109      'id' => 'filehash',
 110      'table' => 'project_release_file',
 111      'field' => 'filehash',
 112      'relationship' => 'none',
 113    ),
 114  ));
 115  $handler->override_option('sorts', array(
 116    'fid' => array(
 117      'order' => 'DESC',
 118      'id' => 'fid',
 119      'table' => 'files',
 120      'field' => 'fid',
 121      'relationship' => 'none',
 122    ),
 123  ));
 124  $handler->override_option('arguments', array(
 125    'nid' => array(
 126      'default_action' => 'not found',
 127      'style_plugin' => 'default_summary',
 128      'style_options' => array(),
 129      'wildcard' => 'all',
 130      'wildcard_substitution' => 'All',
 131      'title' => '',
 132      'breadcrumb' => '',
 133      'default_argument_type' => 'fixed',
 134      'default_argument' => '',
 135      'validate_type' => 'node',
 136      'validate_fail' => 'not found',
 137      'break_phrase' => 0,
 138      'not' => 0,
 139      'id' => 'nid',
 140      'table' => 'node',
 141      'field' => 'nid',
 142      'relationship' => 'nid',
 143      'validate_user_argument_type' => 'uid',
 144      'validate_user_roles' => array(),
 145      'default_options_div_prefix' => '',
 146      'default_argument_user' => 0,
 147      'default_argument_fixed' => '',
 148      'default_argument_php' => '',
 149      'validate_argument_node_type' => array(
 150        'project_release' => 'project_release',
 151      ),
 152      'validate_argument_node_access' => 0,
 153      'validate_argument_nid_type' => 'nid',
 154      'validate_argument_vocabulary' => array(),
 155      'validate_argument_type' => 'tid',
 156      'validate_argument_transform' => 0,
 157      'validate_user_restrict_roles' => 0,
 158      'validate_argument_project_term_vocabulary' => array(),
 159      'validate_argument_project_term_argument_type' => 'tid',
 160      'validate_argument_project_term_argument_action_top_without' => 'pass',
 161      'validate_argument_project_term_argument_action_top_with' => 'pass',
 162      'validate_argument_project_term_argument_action_child' => 'pass',
 163      'validate_argument_php' => '',
 164    ),
 165  ));
 166  $handler->override_option('access', array(
 167    'type' => 'none',
 168  ));
 169  $handler->override_option('cache', array(
 170    'type' => 'none',
 171  ));
 172  $handler->override_option('items_per_page', 0);
 173  $handler->override_option('style_plugin', 'table');
 174  $handler->override_option('style_options', array(
 175    'grouping' => '',
 176    'override' => 1,
 177    'sticky' => 0,
 178    'order' => 'asc',
 179    'columns' => array(
 180      'file_name' => 'file_name',
 181      'filesize' => 'filesize',
 182      'filehash' => 'filehash',
 183    ),
 184    'info' => array(
 185      'file_name' => array(
 186        'sortable' => 1,
 187        'separator' => '',
 188      ),
 189      'filesize' => array(
 190        'sortable' => 1,
 191        'separator' => '',
 192      ),
 193      'filehash' => array(
 194        'sortable' => 1,
 195        'separator' => '',
 196      ),
 197    ),
 198    'default' => '-1',
 199  ));


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7