wing-workflow_overview.view.inc 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. $view = new view();
  3. $view->name = 'wing_workflows';
  4. $view->description = 'Workflow overview page';
  5. $view->tag = 'Wing';
  6. $view->base_table = 'wing_workflow';
  7. $view->human_name = 'Wing: Workflows';
  8. $view->core = 7;
  9. $view->api_version = '3.0';
  10. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  11. /* Display: Master */
  12. $handler = $view->new_display('default', 'Master', 'default');
  13. $handler->display->display_options['title'] = 'Wing: Workflows';
  14. $handler->display->display_options['use_more_always'] = FALSE;
  15. $handler->display->display_options['access']['type'] = 'perm';
  16. $handler->display->display_options['access']['perm'] = 'administer wing';
  17. $handler->display->display_options['cache']['type'] = 'none';
  18. $handler->display->display_options['query']['type'] = 'views_query';
  19. $handler->display->display_options['exposed_form']['type'] = 'basic';
  20. $handler->display->display_options['pager']['type'] = 'full';
  21. $handler->display->display_options['pager']['options']['items_per_page'] = '10';
  22. $handler->display->display_options['style_plugin'] = 'table';
  23. $handler->display->display_options['style_options']['columns'] = array(
  24. 'machine_name' => 'machine_name',
  25. 'wid' => 'wid',
  26. 'title' => 'title',
  27. );
  28. $handler->display->display_options['style_options']['default'] = 'title';
  29. $handler->display->display_options['style_options']['info'] = array(
  30. 'machine_name' => array(
  31. 'sortable' => 1,
  32. 'default_sort_order' => 'asc',
  33. 'align' => '',
  34. 'separator' => '',
  35. 'empty_column' => 0,
  36. ),
  37. 'wid' => array(
  38. 'sortable' => 1,
  39. 'default_sort_order' => 'asc',
  40. 'align' => '',
  41. 'separator' => '',
  42. 'empty_column' => 0,
  43. ),
  44. 'title' => array(
  45. 'sortable' => 1,
  46. 'default_sort_order' => 'asc',
  47. 'align' => '',
  48. 'separator' => '',
  49. 'empty_column' => 0,
  50. ),
  51. );
  52. /* Field: Wing: Workflow: Machine-readable name */
  53. $handler->display->display_options['fields']['machine_name']['id'] = 'machine_name';
  54. $handler->display->display_options['fields']['machine_name']['table'] = 'wing_workflow';
  55. $handler->display->display_options['fields']['machine_name']['field'] = 'machine_name';
  56. $handler->display->display_options['fields']['machine_name']['alter']['make_link'] = TRUE;
  57. $handler->display->display_options['fields']['machine_name']['alter']['path'] = 'admin/content/wing/workflow/[machine_name]';
  58. /* Field: Wing: Workflow: Internal, numeric wing: workflow ID */
  59. $handler->display->display_options['fields']['wid']['id'] = 'wid';
  60. $handler->display->display_options['fields']['wid']['table'] = 'wing_workflow';
  61. $handler->display->display_options['fields']['wid']['field'] = 'wid';
  62. $handler->display->display_options['fields']['wid']['label'] = 'Workflow ID';
  63. $handler->display->display_options['fields']['wid']['alter']['make_link'] = TRUE;
  64. $handler->display->display_options['fields']['wid']['alter']['path'] = 'admin/content/wing/workflow/[machine_name]';
  65. /* Field: Wing: Workflow: Label */
  66. $handler->display->display_options['fields']['title']['id'] = 'title';
  67. $handler->display->display_options['fields']['title']['table'] = 'wing_workflow';
  68. $handler->display->display_options['fields']['title']['field'] = 'title';
  69. $handler->display->display_options['fields']['title']['alter']['make_link'] = TRUE;
  70. $handler->display->display_options['fields']['title']['alter']['path'] = 'admin/content/wing/workflow/[machine_name]';
  71. /* Display: Page */
  72. $handler = $view->new_display('page', 'Page', 'page');
  73. $handler->display->display_options['display_comment'] = 'Workflow overview page.';
  74. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  75. $handler->display->display_options['path'] = 'admin/content/wing/workflow';
  76. $handler->display->display_options['menu']['type'] = 'tab';
  77. $handler->display->display_options['menu']['title'] = 'Workflows';
  78. $handler->display->display_options['menu']['weight'] = '0';
  79. $handler->display->display_options['menu']['name'] = 'management';
  80. $handler->display->display_options['menu']['context'] = 0;