tripal_bulk_loader.views_default.inc 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. <?php
  2. /**
  3. * @file
  4. * Defines the tripal bulk loader default views.
  5. *
  6. * @ingroup tripal_bulk_loader
  7. */
  8. /**
  9. * Implements hook_views_default_views().
  10. *
  11. * @ingroup tripal_bulk_loader
  12. */
  13. function tripal_bulk_loader_views_default_views() {
  14. $views = array();
  15. // Default Tripal Admin View: Jobs
  16. $view = tripal_bulk_loader_defaultview_admin_job_listing();
  17. $views[$view->name] = $view;
  18. // Default Tripal Admin View: Templates
  19. $view = tripal_bulk_loader_defaultview_admin_template_listing();
  20. $views[$view->name] = $view;
  21. return $views;
  22. }
  23. /**
  24. * Default Admin View for job management
  25. *
  26. * @ingroup tripal_bulk_loader
  27. */
  28. function tripal_bulk_loader_defaultview_admin_job_listing() {
  29. $view = new view();
  30. $view->name = 'tripal_bulk_loading_jobs';
  31. $view->description = 'DO NOT DISABLE';
  32. $view->tag = 'tripal admin';
  33. $view->base_table = 'tripal_bulk_loader';
  34. $view->human_name = 'Tripal Bulk Loading Jobs';
  35. $view->core = 7;
  36. $view->api_version = '3.0';
  37. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  38. /* Display: Master */
  39. $handler = $view->new_display('default', 'Master', 'default');
  40. $handler->display->display_options['title'] = 'Tripal Bulk Loading Jobs';
  41. $handler->display->display_options['use_more_always'] = FALSE;
  42. $handler->display->display_options['access']['type'] = 'perm';
  43. $handler->display->display_options['access']['perm'] = 'administer tripal_bulk_loader';
  44. $handler->display->display_options['cache']['type'] = 'none';
  45. $handler->display->display_options['query']['type'] = 'views_query';
  46. $handler->display->display_options['exposed_form']['type'] = 'basic';
  47. $handler->display->display_options['pager']['type'] = 'full';
  48. $handler->display->display_options['pager']['options']['items_per_page'] = '25';
  49. $handler->display->display_options['style_plugin'] = 'table';
  50. $handler->display->display_options['style_options']['columns'] = array(
  51. 'template_id' => 'template_id',
  52. 'edit_node' => 'edit_node',
  53. 'loader_name' => 'loader_name',
  54. 'name' => 'name',
  55. 'created' => 'created',
  56. 'changed' => 'changed',
  57. 'job_status' => 'job_status',
  58. );
  59. $handler->display->display_options['style_options']['default'] = 'changed';
  60. $handler->display->display_options['style_options']['info'] = array(
  61. 'template_id' => array(
  62. 'sortable' => 0,
  63. 'default_sort_order' => 'asc',
  64. 'align' => '',
  65. 'separator' => '',
  66. 'empty_column' => 0,
  67. ),
  68. 'edit_node' => array(
  69. 'align' => '',
  70. 'separator' => '',
  71. 'empty_column' => 0,
  72. ),
  73. 'loader_name' => array(
  74. 'sortable' => 1,
  75. 'default_sort_order' => 'asc',
  76. 'align' => '',
  77. 'separator' => '',
  78. 'empty_column' => 0,
  79. ),
  80. 'name' => array(
  81. 'sortable' => 1,
  82. 'default_sort_order' => 'asc',
  83. 'align' => '',
  84. 'separator' => '',
  85. 'empty_column' => 0,
  86. ),
  87. 'created' => array(
  88. 'sortable' => 1,
  89. 'default_sort_order' => 'asc',
  90. 'align' => '',
  91. 'separator' => '',
  92. 'empty_column' => 0,
  93. ),
  94. 'changed' => array(
  95. 'sortable' => 1,
  96. 'default_sort_order' => 'asc',
  97. 'align' => '',
  98. 'separator' => '',
  99. 'empty_column' => 0,
  100. ),
  101. 'job_status' => array(
  102. 'sortable' => 1,
  103. 'default_sort_order' => 'asc',
  104. 'align' => '',
  105. 'separator' => '',
  106. 'empty_column' => 0,
  107. ),
  108. );
  109. /* Header: Global: Action Links */
  110. $handler->display->display_options['header']['action_links_area']['id'] = 'action_links_area';
  111. $handler->display->display_options['header']['action_links_area']['table'] = 'views';
  112. $handler->display->display_options['header']['action_links_area']['field'] = 'action_links_area';
  113. $handler->display->display_options['header']['action_links_area']['label'] = 'Action Links';
  114. $handler->display->display_options['header']['action_links_area']['empty'] = TRUE;
  115. $handler->display->display_options['header']['action_links_area']['link-1'] = array(
  116. 'label-1' => 'Add Bulk Loading Job',
  117. 'path-1' => 'node/add/tripal-bulk-loader',
  118. );
  119. $handler->display->display_options['header']['action_links_area']['link-2'] = array(
  120. 'label-2' => '',
  121. 'path-2' => '',
  122. );
  123. $handler->display->display_options['header']['action_links_area']['link-3'] = array(
  124. 'label-3' => '',
  125. 'path-3' => '',
  126. );
  127. $handler->display->display_options['header']['action_links_area']['link-4'] = array(
  128. 'label-4' => '',
  129. 'path-4' => '',
  130. );
  131. /* No results behavior: Global: Text area */
  132. $handler->display->display_options['empty']['area']['id'] = 'area';
  133. $handler->display->display_options['empty']['area']['table'] = 'views';
  134. $handler->display->display_options['empty']['area']['field'] = 'area';
  135. $handler->display->display_options['empty']['area']['label'] = 'No Results';
  136. $handler->display->display_options['empty']['area']['empty'] = TRUE;
  137. $handler->display->display_options['empty']['area']['content'] = '<p>No Tripal Bulk Loading Jobs have been created.</p>';
  138. $handler->display->display_options['empty']['area']['format'] = 'filtered_html';
  139. /* Relationship: Tripal Bulk Loading Jobs: Bulk Loading Job => Node */
  140. $handler->display->display_options['relationships']['nid']['id'] = 'nid';
  141. $handler->display->display_options['relationships']['nid']['table'] = 'tripal_bulk_loader';
  142. $handler->display->display_options['relationships']['nid']['field'] = 'nid';
  143. $handler->display->display_options['relationships']['nid']['label'] = 'TBL Job => Node';
  144. /* Field: Content: Nid */
  145. $handler->display->display_options['fields']['nid']['id'] = 'nid';
  146. $handler->display->display_options['fields']['nid']['table'] = 'node';
  147. $handler->display->display_options['fields']['nid']['field'] = 'nid';
  148. $handler->display->display_options['fields']['nid']['relationship'] = 'nid';
  149. $handler->display->display_options['fields']['nid']['label'] = '';
  150. $handler->display->display_options['fields']['nid']['exclude'] = TRUE;
  151. $handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
  152. /* Field: Tripal Bulk Loader Templates: Template ID */
  153. $handler->display->display_options['fields']['template_id']['id'] = 'template_id';
  154. $handler->display->display_options['fields']['template_id']['table'] = 'tripal_bulk_loader_template';
  155. $handler->display->display_options['fields']['template_id']['field'] = 'template_id';
  156. $handler->display->display_options['fields']['template_id']['exclude'] = TRUE;
  157. $handler->display->display_options['fields']['template_id']['separator'] = '';
  158. /* Field: Tripal Bulk Loading Jobs: Name */
  159. $handler->display->display_options['fields']['loader_name']['id'] = 'loader_name';
  160. $handler->display->display_options['fields']['loader_name']['table'] = 'tripal_bulk_loader';
  161. $handler->display->display_options['fields']['loader_name']['field'] = 'loader_name';
  162. $handler->display->display_options['fields']['loader_name']['alter']['make_link'] = TRUE;
  163. $handler->display->display_options['fields']['loader_name']['alter']['path'] = 'node/[nid]';
  164. /* Field: Tripal Bulk Loader Templates: Name */
  165. $handler->display->display_options['fields']['name']['id'] = 'name';
  166. $handler->display->display_options['fields']['name']['table'] = 'tripal_bulk_loader_template';
  167. $handler->display->display_options['fields']['name']['field'] = 'name';
  168. $handler->display->display_options['fields']['name']['label'] = 'Template';
  169. $handler->display->display_options['fields']['name']['alter']['make_link'] = TRUE;
  170. $handler->display->display_options['fields']['name']['alter']['path'] = 'admin/tripal/loaders/bulk/template/[template_id]/edit';
  171. /* Field: Content: Post date */
  172. $handler->display->display_options['fields']['created']['id'] = 'created';
  173. $handler->display->display_options['fields']['created']['table'] = 'node';
  174. $handler->display->display_options['fields']['created']['field'] = 'created';
  175. $handler->display->display_options['fields']['created']['relationship'] = 'nid';
  176. $handler->display->display_options['fields']['created']['label'] = 'Date Created';
  177. $handler->display->display_options['fields']['created']['date_format'] = 'medium';
  178. /* Field: Content: Updated date */
  179. $handler->display->display_options['fields']['changed']['id'] = 'changed';
  180. $handler->display->display_options['fields']['changed']['table'] = 'node';
  181. $handler->display->display_options['fields']['changed']['field'] = 'changed';
  182. $handler->display->display_options['fields']['changed']['relationship'] = 'nid';
  183. $handler->display->display_options['fields']['changed']['label'] = 'Date Updated';
  184. $handler->display->display_options['fields']['changed']['date_format'] = 'medium';
  185. /* Field: Tripal Bulk Loading Jobs: Job Status */
  186. $handler->display->display_options['fields']['job_status']['id'] = 'job_status';
  187. $handler->display->display_options['fields']['job_status']['table'] = 'tripal_bulk_loader';
  188. $handler->display->display_options['fields']['job_status']['field'] = 'job_status';
  189. $handler->display->display_options['fields']['job_status']['label'] = 'Status';
  190. /* Field: Content: Edit link */
  191. $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
  192. $handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
  193. $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
  194. $handler->display->display_options['fields']['edit_node']['relationship'] = 'nid';
  195. $handler->display->display_options['fields']['edit_node']['label'] = '';
  196. $handler->display->display_options['fields']['edit_node']['exclude'] = TRUE;
  197. $handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
  198. $handler->display->display_options['fields']['edit_node']['text'] = 'edit';
  199. /* Field: Content: Delete link */
  200. $handler->display->display_options['fields']['delete_node']['id'] = 'delete_node';
  201. $handler->display->display_options['fields']['delete_node']['table'] = 'views_entity_node';
  202. $handler->display->display_options['fields']['delete_node']['field'] = 'delete_node';
  203. $handler->display->display_options['fields']['delete_node']['relationship'] = 'nid';
  204. $handler->display->display_options['fields']['delete_node']['label'] = '';
  205. $handler->display->display_options['fields']['delete_node']['exclude'] = TRUE;
  206. $handler->display->display_options['fields']['delete_node']['element_label_colon'] = FALSE;
  207. $handler->display->display_options['fields']['delete_node']['text'] = 'delete';
  208. /* Field: Global: Custom text */
  209. $handler->display->display_options['fields']['nothing']['id'] = 'nothing';
  210. $handler->display->display_options['fields']['nothing']['table'] = 'views';
  211. $handler->display->display_options['fields']['nothing']['field'] = 'nothing';
  212. $handler->display->display_options['fields']['nothing']['label'] = '';
  213. $handler->display->display_options['fields']['nothing']['alter']['text'] = '[edit_node] [delete_node]';
  214. $handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
  215. /* Filter criterion: Tripal Bulk Loader Templates: Name */
  216. $handler->display->display_options['filters']['name']['id'] = 'name';
  217. $handler->display->display_options['filters']['name']['table'] = 'tripal_bulk_loader_template';
  218. $handler->display->display_options['filters']['name']['field'] = 'name';
  219. $handler->display->display_options['filters']['name']['operator'] = 'contains';
  220. $handler->display->display_options['filters']['name']['exposed'] = TRUE;
  221. $handler->display->display_options['filters']['name']['expose']['operator_id'] = 'name_op';
  222. $handler->display->display_options['filters']['name']['expose']['label'] = 'Template Name Contains';
  223. $handler->display->display_options['filters']['name']['expose']['operator'] = 'name_op';
  224. $handler->display->display_options['filters']['name']['expose']['identifier'] = 'name';
  225. $handler->display->display_options['filters']['name']['expose']['remember_roles'] = array(
  226. 2 => '2',
  227. 1 => 0,
  228. 3 => 0,
  229. );
  230. /* Filter criterion: Tripal Bulk Loading Jobs: Job Status */
  231. $handler->display->display_options['filters']['job_status']['id'] = 'job_status';
  232. $handler->display->display_options['filters']['job_status']['table'] = 'tripal_bulk_loader';
  233. $handler->display->display_options['filters']['job_status']['field'] = 'job_status';
  234. $handler->display->display_options['filters']['job_status']['exposed'] = TRUE;
  235. $handler->display->display_options['filters']['job_status']['expose']['operator_id'] = 'job_status_op';
  236. $handler->display->display_options['filters']['job_status']['expose']['label'] = 'Job Status';
  237. $handler->display->display_options['filters']['job_status']['expose']['operator'] = 'job_status_op';
  238. $handler->display->display_options['filters']['job_status']['expose']['identifier'] = 'job_status';
  239. $handler->display->display_options['filters']['job_status']['expose']['remember_roles'] = array(
  240. 2 => '2',
  241. 1 => 0,
  242. 3 => 0,
  243. );
  244. /* Filter criterion: Tripal Bulk Loading Jobs: Name */
  245. $handler->display->display_options['filters']['loader_name']['id'] = 'loader_name';
  246. $handler->display->display_options['filters']['loader_name']['table'] = 'tripal_bulk_loader';
  247. $handler->display->display_options['filters']['loader_name']['field'] = 'loader_name';
  248. $handler->display->display_options['filters']['loader_name']['operator'] = 'contains';
  249. $handler->display->display_options['filters']['loader_name']['exposed'] = TRUE;
  250. $handler->display->display_options['filters']['loader_name']['expose']['operator_id'] = 'loader_name_op';
  251. $handler->display->display_options['filters']['loader_name']['expose']['label'] = 'Job Name Contains';
  252. $handler->display->display_options['filters']['loader_name']['expose']['operator'] = 'loader_name_op';
  253. $handler->display->display_options['filters']['loader_name']['expose']['identifier'] = 'loader_name';
  254. $handler->display->display_options['filters']['loader_name']['expose']['remember_roles'] = array(
  255. 2 => '2',
  256. 1 => 0,
  257. 3 => 0,
  258. );
  259. /* Display: Page */
  260. $handler = $view->new_display('page', 'Page', 'page_1');
  261. $handler->display->display_options['path'] = 'admin/tripal/loaders/bulk/jobs';
  262. $handler->display->display_options['menu']['type'] = 'default tab';
  263. $handler->display->display_options['menu']['title'] = 'Jobs';
  264. $handler->display->display_options['menu']['weight'] = '0';
  265. $handler->display->display_options['menu']['context'] = 0;
  266. $handler->display->display_options['menu']['context_only_inline'] = 0;
  267. $handler->display->display_options['tab_options']['weight'] = '0';
  268. return $view;
  269. }
  270. /**
  271. * Default Admin View for template management
  272. *
  273. * @ingroup tripal_bulk_loader
  274. */
  275. function tripal_bulk_loader_defaultview_admin_template_listing() {
  276. $view = new view();
  277. $view->name = 'tripal_bulk_loader_templates';
  278. $view->description = 'DO NOT DISABLE';
  279. $view->tag = 'tripal admin';
  280. $view->base_table = 'tripal_bulk_loader_template';
  281. $view->human_name = 'Tripal Bulk Loader Templates';
  282. $view->core = 7;
  283. $view->api_version = '3.0';
  284. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  285. /* Display: Master */
  286. $handler = $view->new_display('default', 'Master', 'default');
  287. $handler->display->display_options['title'] = 'Tripal Bulk Loader Templates';
  288. $handler->display->display_options['use_more_always'] = FALSE;
  289. $handler->display->display_options['access']['type'] = 'perm';
  290. $handler->display->display_options['access']['perm'] = 'administer tripal_bulk_loader';
  291. $handler->display->display_options['cache']['type'] = 'none';
  292. $handler->display->display_options['query']['type'] = 'views_query';
  293. $handler->display->display_options['exposed_form']['type'] = 'basic';
  294. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Filter';
  295. $handler->display->display_options['pager']['type'] = 'full';
  296. $handler->display->display_options['pager']['options']['items_per_page'] = '25';
  297. $handler->display->display_options['style_plugin'] = 'table';
  298. /* Header: Global: Action Links */
  299. $handler->display->display_options['header']['action_links_area']['id'] = 'action_links_area';
  300. $handler->display->display_options['header']['action_links_area']['table'] = 'views';
  301. $handler->display->display_options['header']['action_links_area']['field'] = 'action_links_area';
  302. $handler->display->display_options['header']['action_links_area']['label'] = 'Action Links';
  303. $handler->display->display_options['header']['action_links_area']['empty'] = TRUE;
  304. $handler->display->display_options['header']['action_links_area']['link-1'] = array(
  305. 'label-1' => 'Add Template',
  306. 'path-1' => 'admin/tripal/loaders/bulk/template/create',
  307. );
  308. $handler->display->display_options['header']['action_links_area']['link-2'] = array(
  309. 'label-2' => 'Import Template',
  310. 'path-2' => 'admin/tripal/loaders/bulk/templates/import',
  311. );
  312. /* Field: Tripal Bulk Loader Templates: Name */
  313. $handler->display->display_options['fields']['name']['id'] = 'name';
  314. $handler->display->display_options['fields']['name']['table'] = 'tripal_bulk_loader_template';
  315. $handler->display->display_options['fields']['name']['field'] = 'name';
  316. /* Field: Tripal Bulk Loader Templates: Created */
  317. $handler->display->display_options['fields']['created']['id'] = 'created';
  318. $handler->display->display_options['fields']['created']['table'] = 'tripal_bulk_loader_template';
  319. $handler->display->display_options['fields']['created']['field'] = 'created';
  320. $handler->display->display_options['fields']['created']['label'] = 'Created On';
  321. $handler->display->display_options['fields']['created']['date_format'] = 'long';
  322. /* Field: Tripal Bulk Loader Templates: Updated */
  323. $handler->display->display_options['fields']['changed']['id'] = 'changed';
  324. $handler->display->display_options['fields']['changed']['table'] = 'tripal_bulk_loader_template';
  325. $handler->display->display_options['fields']['changed']['field'] = 'changed';
  326. $handler->display->display_options['fields']['changed']['label'] = 'Updated On';
  327. $handler->display->display_options['fields']['changed']['date_format'] = 'long';
  328. /* Field: Tripal Bulk Loader Templates: Template ID */
  329. $handler->display->display_options['fields']['template_id']['id'] = 'template_id';
  330. $handler->display->display_options['fields']['template_id']['table'] = 'tripal_bulk_loader_template';
  331. $handler->display->display_options['fields']['template_id']['field'] = 'template_id';
  332. $handler->display->display_options['fields']['template_id']['label'] = '';
  333. $handler->display->display_options['fields']['template_id']['exclude'] = TRUE;
  334. $handler->display->display_options['fields']['template_id']['element_label_colon'] = FALSE;
  335. $handler->display->display_options['fields']['template_id']['separator'] = '';
  336. /* Field: Global: Custom text */
  337. $handler->display->display_options['fields']['nothing']['id'] = 'nothing';
  338. $handler->display->display_options['fields']['nothing']['table'] = 'views';
  339. $handler->display->display_options['fields']['nothing']['field'] = 'nothing';
  340. $handler->display->display_options['fields']['nothing']['label'] = 'Edit Template';
  341. $handler->display->display_options['fields']['nothing']['exclude'] = TRUE;
  342. $handler->display->display_options['fields']['nothing']['alter']['text'] = 'edit';
  343. $handler->display->display_options['fields']['nothing']['alter']['make_link'] = TRUE;
  344. $handler->display->display_options['fields']['nothing']['alter']['path'] = 'admin/tripal/loaders/bulk/template/[template_id]/edit';
  345. /* Field: Global: Custom text */
  346. $handler->display->display_options['fields']['nothing_1']['id'] = 'nothing_1';
  347. $handler->display->display_options['fields']['nothing_1']['table'] = 'views';
  348. $handler->display->display_options['fields']['nothing_1']['field'] = 'nothing';
  349. $handler->display->display_options['fields']['nothing_1']['label'] = 'Delete Template';
  350. $handler->display->display_options['fields']['nothing_1']['exclude'] = TRUE;
  351. $handler->display->display_options['fields']['nothing_1']['alter']['text'] = 'delete';
  352. $handler->display->display_options['fields']['nothing_1']['alter']['make_link'] = TRUE;
  353. $handler->display->display_options['fields']['nothing_1']['alter']['path'] = 'admin/tripal/loaders/bulk/template/[template_id]/delete?template_name=[name]';
  354. /* Field: Global: Custom text */
  355. $handler->display->display_options['fields']['nothing_2']['id'] = 'nothing_2';
  356. $handler->display->display_options['fields']['nothing_2']['table'] = 'views';
  357. $handler->display->display_options['fields']['nothing_2']['field'] = 'nothing';
  358. $handler->display->display_options['fields']['nothing_2']['label'] = 'Export Template';
  359. $handler->display->display_options['fields']['nothing_2']['exclude'] = TRUE;
  360. $handler->display->display_options['fields']['nothing_2']['alter']['text'] = 'export';
  361. $handler->display->display_options['fields']['nothing_2']['alter']['make_link'] = TRUE;
  362. $handler->display->display_options['fields']['nothing_2']['alter']['path'] = 'admin/tripal/loaders/bulk/template/[template_id]/export';
  363. /* Field: Global: Custom text */
  364. $handler->display->display_options['fields']['nothing_3']['id'] = 'nothing_3';
  365. $handler->display->display_options['fields']['nothing_3']['table'] = 'views';
  366. $handler->display->display_options['fields']['nothing_3']['field'] = 'nothing';
  367. $handler->display->display_options['fields']['nothing_3']['label'] = 'View Jobs';
  368. $handler->display->display_options['fields']['nothing_3']['exclude'] = TRUE;
  369. $handler->display->display_options['fields']['nothing_3']['alter']['text'] = 'View Jobs';
  370. $handler->display->display_options['fields']['nothing_3']['alter']['make_link'] = TRUE;
  371. $handler->display->display_options['fields']['nothing_3']['alter']['path'] = 'admin/tripal/loaders/bulk/jobs?name=[name]';
  372. /* Field: Global: Custom text */
  373. $handler->display->display_options['fields']['nothing_4']['id'] = 'nothing_4';
  374. $handler->display->display_options['fields']['nothing_4']['table'] = 'views';
  375. $handler->display->display_options['fields']['nothing_4']['field'] = 'nothing';
  376. $handler->display->display_options['fields']['nothing_4']['label'] = '';
  377. $handler->display->display_options['fields']['nothing_4']['alter']['text'] = '[nothing] [nothing_1] [nothing_2]<br />
  378. [nothing_3]';
  379. $handler->display->display_options['fields']['nothing_4']['element_label_colon'] = FALSE;
  380. $handler->display->display_options['fields']['nothing_4']['element_wrapper_class'] = 'active';
  381. /* Filter criterion: Tripal Bulk Loader Templates: Name */
  382. $handler->display->display_options['filters']['name']['id'] = 'name';
  383. $handler->display->display_options['filters']['name']['table'] = 'tripal_bulk_loader_template';
  384. $handler->display->display_options['filters']['name']['field'] = 'name';
  385. $handler->display->display_options['filters']['name']['operator'] = 'contains';
  386. $handler->display->display_options['filters']['name']['group'] = 1;
  387. $handler->display->display_options['filters']['name']['exposed'] = TRUE;
  388. $handler->display->display_options['filters']['name']['expose']['operator_id'] = 'name_op';
  389. $handler->display->display_options['filters']['name']['expose']['label'] = 'Template Name Contains';
  390. $handler->display->display_options['filters']['name']['expose']['operator'] = 'name_op';
  391. $handler->display->display_options['filters']['name']['expose']['identifier'] = 'name';
  392. $handler->display->display_options['filters']['name']['expose']['remember_roles'] = array(
  393. 2 => '2',
  394. 1 => 0,
  395. 3 => 0,
  396. );
  397. /* Filter criterion: Tripal Bulk Loader Templates: Created */
  398. $handler->display->display_options['filters']['created']['id'] = 'created';
  399. $handler->display->display_options['filters']['created']['table'] = 'tripal_bulk_loader_template';
  400. $handler->display->display_options['filters']['created']['field'] = 'created';
  401. $handler->display->display_options['filters']['created']['group'] = 1;
  402. $handler->display->display_options['filters']['created']['exposed'] = TRUE;
  403. $handler->display->display_options['filters']['created']['expose']['operator_id'] = 'created_op';
  404. $handler->display->display_options['filters']['created']['expose']['label'] = 'Date Created';
  405. $handler->display->display_options['filters']['created']['expose']['operator'] = 'created_op';
  406. $handler->display->display_options['filters']['created']['expose']['identifier'] = 'created';
  407. $handler->display->display_options['filters']['created']['expose']['remember_roles'] = array(
  408. 2 => '2',
  409. 1 => 0,
  410. 3 => 0,
  411. );
  412. /* Display: Page */
  413. $handler = $view->new_display('page', 'Page', 'page_1');
  414. $handler->display->display_options['path'] = 'admin/tripal/loaders/bulk/templates';
  415. $handler->display->display_options['menu']['type'] = 'tab';
  416. $handler->display->display_options['menu']['title'] = 'Templates';
  417. $handler->display->display_options['menu']['weight'] = '0';
  418. $handler->display->display_options['menu']['name'] = 'management';
  419. $handler->display->display_options['menu']['context'] = 0;
  420. $handler->display->display_options['menu']['context_only_inline'] = 0;
  421. return $view;
  422. }