media_default.view.inc

  1. cis7 sites/all/modules/ulmus/media/views/media_default.view.inc
  2. cle7 sites/all/modules/ulmus/media/views/media_default.view.inc
  3. ecd7 sites/all/modules/ulmus/media/views/media_default.view.inc
  4. elmsmedia7 sites/all/modules/ulmus/media/views/media_default.view.inc
  5. harmony7 sites/all/modules/ulmus/media/views/media_default.view.inc
  6. icor7 sites/all/modules/ulmus/media/views/media_default.view.inc
  7. meedjum_blog7 sites/all/modules/ulmus/media/views/media_default.view.inc
  8. mooc7 sites/all/modules/ulmus/media/views/media_default.view.inc

The default view for the media browser library tab.

File

sites/all/modules/ulmus/media/views/media_default.view.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * The default view for the media browser library tab.
  5. */
  6. $view = new view();
  7. $view->name = 'media_default';
  8. $view->description = 'Default view for the media browser library tab.';
  9. $view->tag = 'media, default';
  10. $view->base_table = 'file_managed';
  11. $view->human_name = 'Media browser';
  12. $view->core = 7;
  13. $view->api_version = '3.0';
  14. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  15. /* Display: Master */
  16. $handler = $view->new_display('default', 'Master', 'default');
  17. $handler->display->display_options['use_ajax'] = TRUE;
  18. $handler->display->display_options['use_more_always'] = FALSE;
  19. $handler->display->display_options['group_by'] = TRUE;
  20. $handler->display->display_options['access']['type'] = 'perm';
  21. $handler->display->display_options['access']['perm'] = 'view files';
  22. $handler->display->display_options['cache']['type'] = 'none';
  23. $handler->display->display_options['query']['type'] = 'views_query';
  24. $handler->display->display_options['query']['options']['query_tags'] = array(
  25. 0 => 'media_browser',
  26. );
  27. $handler->display->display_options['exposed_form']['type'] = 'basic';
  28. $handler->display->display_options['exposed_form']['options']['autosubmit'] = TRUE;
  29. $handler->display->display_options['pager']['type'] = 'full';
  30. $handler->display->display_options['pager']['options']['items_per_page'] = '10';
  31. $handler->display->display_options['pager']['options']['offset'] = '0';
  32. $handler->display->display_options['pager']['options']['id'] = '0';
  33. $handler->display->display_options['style_plugin'] = 'media_browser';
  34. /* No results behavior: Global: Text area */
  35. $handler->display->display_options['empty']['area']['id'] = 'area';
  36. $handler->display->display_options['empty']['area']['table'] = 'views';
  37. $handler->display->display_options['empty']['area']['field'] = 'area';
  38. $handler->display->display_options['empty']['area']['content'] = 'No files available.';
  39. $handler->display->display_options['empty']['area']['format'] = 'plain_text';
  40. /* Field: File: Name */
  41. $handler->display->display_options['fields']['filename']['id'] = 'filename';
  42. $handler->display->display_options['fields']['filename']['table'] = 'file_managed';
  43. $handler->display->display_options['fields']['filename']['field'] = 'filename';
  44. $handler->display->display_options['fields']['filename']['label'] = '';
  45. $handler->display->display_options['fields']['filename']['alter']['word_boundary'] = FALSE;
  46. $handler->display->display_options['fields']['filename']['alter']['ellipsis'] = FALSE;
  47. $handler->display->display_options['fields']['filename']['link_to_file'] = TRUE;
  48. /* Sort criterion: File: Upload date */
  49. $handler->display->display_options['sorts']['timestamp']['id'] = 'timestamp';
  50. $handler->display->display_options['sorts']['timestamp']['table'] = 'file_managed';
  51. $handler->display->display_options['sorts']['timestamp']['field'] = 'timestamp';
  52. $handler->display->display_options['sorts']['timestamp']['order'] = 'DESC';
  53. $handler->display->display_options['sorts']['timestamp']['exposed'] = TRUE;
  54. $handler->display->display_options['sorts']['timestamp']['expose']['label'] = 'Upload date';
  55. /* Sort criterion: SUM(File Usage: Use count) */
  56. $handler->display->display_options['sorts']['count']['id'] = 'count';
  57. $handler->display->display_options['sorts']['count']['table'] = 'file_usage';
  58. $handler->display->display_options['sorts']['count']['field'] = 'count';
  59. $handler->display->display_options['sorts']['count']['group_type'] = 'sum';
  60. $handler->display->display_options['sorts']['count']['exposed'] = TRUE;
  61. $handler->display->display_options['sorts']['count']['expose']['label'] = 'Use count';
  62. /* Filter criterion: File: Status */
  63. $handler->display->display_options['filters']['status']['id'] = 'status';
  64. $handler->display->display_options['filters']['status']['table'] = 'file_managed';
  65. $handler->display->display_options['filters']['status']['field'] = 'status';
  66. $handler->display->display_options['filters']['status']['value'] = array(
  67. 1 => '1',
  68. );
  69. /* Filter criterion: File: Name */
  70. $handler->display->display_options['filters']['filename']['id'] = 'filename';
  71. $handler->display->display_options['filters']['filename']['table'] = 'file_managed';
  72. $handler->display->display_options['filters']['filename']['field'] = 'filename';
  73. $handler->display->display_options['filters']['filename']['operator'] = 'contains';
  74. $handler->display->display_options['filters']['filename']['exposed'] = TRUE;
  75. $handler->display->display_options['filters']['filename']['expose']['operator_id'] = 'filename_op';
  76. $handler->display->display_options['filters']['filename']['expose']['label'] = 'File name';
  77. $handler->display->display_options['filters']['filename']['expose']['operator'] = 'filename_op';
  78. $handler->display->display_options['filters']['filename']['expose']['identifier'] = 'filename';
  79. /* Filter criterion: File: Type */
  80. $handler->display->display_options['filters']['type']['id'] = 'type';
  81. $handler->display->display_options['filters']['type']['table'] = 'file_managed';
  82. $handler->display->display_options['filters']['type']['field'] = 'type';
  83. $handler->display->display_options['filters']['type']['exposed'] = TRUE;
  84. $handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
  85. $handler->display->display_options['filters']['type']['expose']['label'] = 'Type';
  86. $handler->display->display_options['filters']['type']['expose']['operator'] = 'type_op';
  87. $handler->display->display_options['filters']['type']['expose']['identifier'] = 'type';
  88. /* Display: Media browser */
  89. $handler = $view->new_display('media_browser', 'Media browser', 'media_browser_1');
  90. $handler->display->display_options['defaults']['title'] = FALSE;
  91. $handler->display->display_options['title'] = 'Library';
  92. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  93. /* Display: My files */
  94. $handler = $view->new_display('media_browser', 'My files', 'media_browser_my_files');
  95. $handler->display->display_options['defaults']['title'] = FALSE;
  96. $handler->display->display_options['title'] = 'My files';
  97. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  98. $handler->display->display_options['defaults']['access'] = FALSE;
  99. $handler->display->display_options['access']['type'] = 'perm';
  100. $handler->display->display_options['access']['perm'] = 'view own files';
  101. $handler->display->display_options['defaults']['relationships'] = FALSE;
  102. /* Relationship: File: User who uploaded */
  103. $handler->display->display_options['relationships']['uid']['id'] = 'uid';
  104. $handler->display->display_options['relationships']['uid']['table'] = 'file_managed';
  105. $handler->display->display_options['relationships']['uid']['field'] = 'uid';
  106. $handler->display->display_options['relationships']['uid']['required'] = TRUE;
  107. $handler->display->display_options['defaults']['arguments'] = FALSE;
  108. $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  109. $handler->display->display_options['defaults']['filters'] = FALSE;
  110. /* Filter criterion: File: Status */
  111. $handler->display->display_options['filters']['status']['id'] = 'status';
  112. $handler->display->display_options['filters']['status']['table'] = 'file_managed';
  113. $handler->display->display_options['filters']['status']['field'] = 'status';
  114. $handler->display->display_options['filters']['status']['value'] = array(
  115. 1 => '1',
  116. );
  117. /* Filter criterion: File: Name */
  118. $handler->display->display_options['filters']['filename']['id'] = 'filename';
  119. $handler->display->display_options['filters']['filename']['table'] = 'file_managed';
  120. $handler->display->display_options['filters']['filename']['field'] = 'filename';
  121. $handler->display->display_options['filters']['filename']['operator'] = 'contains';
  122. $handler->display->display_options['filters']['filename']['exposed'] = TRUE;
  123. $handler->display->display_options['filters']['filename']['expose']['operator_id'] = 'filename_op';
  124. $handler->display->display_options['filters']['filename']['expose']['label'] = 'File name';
  125. $handler->display->display_options['filters']['filename']['expose']['operator'] = 'filename_op';
  126. $handler->display->display_options['filters']['filename']['expose']['identifier'] = 'filename';
  127. /* Filter criterion: File: Type */
  128. $handler->display->display_options['filters']['type']['id'] = 'type';
  129. $handler->display->display_options['filters']['type']['table'] = 'file_managed';
  130. $handler->display->display_options['filters']['type']['field'] = 'type';
  131. $handler->display->display_options['filters']['type']['exposed'] = TRUE;
  132. $handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
  133. $handler->display->display_options['filters']['type']['expose']['label'] = 'Type';
  134. $handler->display->display_options['filters']['type']['expose']['operator'] = 'type_op';
  135. $handler->display->display_options['filters']['type']['expose']['identifier'] = 'type';
  136. /* Filter criterion: User: Current */
  137. $handler->display->display_options['filters']['uid_current']['id'] = 'uid_current';
  138. $handler->display->display_options['filters']['uid_current']['table'] = 'users';
  139. $handler->display->display_options['filters']['uid_current']['field'] = 'uid_current';
  140. $handler->display->display_options['filters']['uid_current']['relationship'] = 'uid';
  141. $handler->display->display_options['filters']['uid_current']['value'] = '1';
  142. $translatables['media_default'] = array(
  143. t('Master'),
  144. t('more'),
  145. t('Apply'),
  146. t('Reset'),
  147. t('Sort by'),
  148. t('Asc'),
  149. t('Desc'),
  150. t('Items per page'),
  151. t('- All -'),
  152. t('Offset'),
  153. t('« first'),
  154. t('‹ previous'),
  155. t('next ›'),
  156. t('last »'),
  157. t('No files available.'),
  158. t('Upload date'),
  159. t('Use count'),
  160. t('File name'),
  161. t('Type'),
  162. t('Media browser'),
  163. t('Library'),
  164. t('My files'),
  165. t('User who uploaded'),
  166. );
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.