Parent Directory
|
Revision Log
|
Revision Graph
|
Patch
| revision 1.3, Wed Jan 28 23:17:54 2009 UTC | revision 1.4, Thu Jan 29 19:19:57 2009 UTC | |
|---|---|---|
| # | Line 10 | Line 10 |
| 10 | * Implementation of hook_views_default_views(). | * Implementation of hook_views_default_views(). |
| 11 | */ | */ |
| 12 | function comment_alter_taxonomy_views_default_views() { | function comment_alter_taxonomy_views_default_views() { |
| 13 | $views = array(); | |
| 14 | ||
| 15 | // ---------------------------------------- | if (module_exists('project_issue')) { |
| 16 | // Term view across all projects | // ---------------------------------------- |
| 17 | // ---------------------------------------- | // Term view across all projects |
| 18 | $view = new view; | // ---------------------------------------- |
| 19 | $view->name = 'project_issue_tag_all_projects'; | $view = new view; |
| 20 | $view->description = 'Project issues for all projects by issue tag'; | $view->name = 'project_issue_tag_all_projects'; |
| 21 | $view->tag = 'Project issue'; | $view->description = 'Project issues for all projects by issue tag'; |
| 22 | $view->view_php = ''; | $view->tag = 'Project issue'; |
| 23 | $view->base_table = 'node'; | $view->view_php = ''; |
| 24 | $view->is_cacheable = FALSE; | $view->base_table = 'node'; |
| 25 | $view->api_version = 2; | $view->is_cacheable = FALSE; |
| 26 | $view->disabled = FALSE; | $view->api_version = 2; |
| 27 | $handler = $view->new_display('default', 'Defaults', 'default'); | $view->disabled = FALSE; |
| 28 | $handler->override_option('relationships', array( | $handler = $view->new_display('default', 'Defaults', 'default'); |
| 29 | 'assigned' => array( | $handler->override_option('relationships', array( |
| 30 | 'label' => 'Assigned user', | 'assigned' => array( |
| 31 | 'required' => 0, | 'label' => 'Assigned user', |
| 32 | 'id' => 'assigned', | 'required' => 0, |
| 33 | 'table' => 'project_issues', | 'id' => 'assigned', |
| 34 | 'field' => 'assigned', | 'table' => 'project_issues', |
| 35 | 'relationship' => 'none', | 'field' => 'assigned', |
| 36 | ), | 'relationship' => 'none', |
| 'rid' => array( | ||
| 'label' => 'Version', | ||
| 'required' => 0, | ||
| 'id' => 'rid', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'rid', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'pid' => array( | ||
| 'id' => 'pid', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'pid', | ||
| ), | ||
| )); | ||
| $handler->override_option('fields', array( | ||
| 'project_issue_queue' => array( | ||
| 'label' => 'Project', | ||
| 'exclude' => 0, | ||
| 'id' => 'project_issue_queue', | ||
| 'table' => 'node', | ||
| 'field' => 'project_issue_queue', | ||
| 'relationship' => 'pid', | ||
| ), | ||
| 'title' => array( | ||
| 'label' => 'Summary', | ||
| 'link_to_node' => 1, | ||
| 'exclude' => 0, | ||
| 'id' => 'title', | ||
| 'table' => 'node', | ||
| 'field' => 'title', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'sid' => array( | ||
| 'id' => 'sid', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'sid', | ||
| ), | ||
| 'priority' => array( | ||
| 'id' => 'priority', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'priority', | ||
| ), | ||
| 'category' => array( | ||
| 'label' => 'Category', | ||
| 'link_to_node' => 0, | ||
| 'exclude' => 0, | ||
| 'id' => 'category', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'category', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'comment_count' => array( | ||
| 'label' => 'Replies', | ||
| 'set_precision' => FALSE, | ||
| 'precision' => 0, | ||
| 'decimal' => '.', | ||
| 'separator' => ',', | ||
| 'prefix' => '', | ||
| 'suffix' => '', | ||
| 'exclude' => 0, | ||
| 'id' => 'comment_count', | ||
| 'table' => 'node_comment_statistics', | ||
| 'field' => 'comment_count', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'new_comments' => array( | ||
| 'label' => 'New replies', | ||
| 'set_precision' => FALSE, | ||
| 'precision' => 0, | ||
| 'decimal' => '.', | ||
| 'separator' => ',', | ||
| 'prefix' => '', | ||
| 'suffix' => ' new', | ||
| 'link_to_comment' => 1, | ||
| 'no_empty' => 1, | ||
| 'exclude' => 0, | ||
| 'id' => 'new_comments', | ||
| 'table' => 'node', | ||
| 'field' => 'new_comments', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'last_comment_timestamp' => array( | ||
| 'label' => 'Last updated', | ||
| 'date_format' => 'time ago', | ||
| 'custom_date_format' => '', | ||
| 'exclude' => 0, | ||
| 'id' => 'last_comment_timestamp', | ||
| 'table' => 'node_comment_statistics', | ||
| 'field' => 'last_comment_timestamp', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'name' => array( | ||
| 'label' => 'Assigned to', | ||
| 'link_to_user' => 1, | ||
| 'exclude' => 0, | ||
| 'id' => 'name', | ||
| 'table' => 'users', | ||
| 'field' => 'name', | ||
| 'relationship' => 'assigned', | ||
| ), | ||
| )); | ||
| $handler->override_option('filters', array( | ||
| 'type' => array( | ||
| 'operator' => 'in', | ||
| 'value' => array( | ||
| 'project_issue' => 'project_issue', | ||
| ), | ||
| 'group' => '0', | ||
| 'exposed' => FALSE, | ||
| 'expose' => array( | ||
| 'operator' => FALSE, | ||
| 'label' => '', | ||
| ), | ||
| 'id' => 'type', | ||
| 'table' => 'node', | ||
| 'field' => 'type', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'status_extra' => array( | ||
| 'operator' => '=', | ||
| 'value' => '', | ||
| 'group' => '0', | ||
| 'exposed' => FALSE, | ||
| 'expose' => array( | ||
| 'operator' => FALSE, | ||
| 'label' => '', | ||
| ), | ||
| 'id' => 'status_extra', | ||
| 'table' => 'node', | ||
| 'field' => 'status_extra', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'title' => array( | ||
| 'operator' => '=', | ||
| 'value' => '', | ||
| 'group' => '0', | ||
| 'exposed' => TRUE, | ||
| 'expose' => array( | ||
| 'use_operator' => 0, | ||
| 'operator' => 'title_op', | ||
| 'identifier' => 'title', | ||
| 'label' => 'Project', | ||
| 'optional' => 1, | ||
| 'remember' => 0, | ||
| 37 | ), | ), |
| 38 | 'case' => 0, | 'rid' => array( |
| 39 | 'id' => 'title', | 'label' => 'Version', |
| 40 | 'table' => 'node', | 'required' => 0, |
| 41 | 'field' => 'title', | 'id' => 'rid', |
| 42 | 'relationship' => 'pid', | 'table' => 'project_issues', |
| 43 | ), | 'field' => 'rid', |
| 44 | 'sid' => array( | 'relationship' => 'none', |
| 45 | 'operator' => 'in', | ), |
| 46 | 'value' => array( | 'pid' => array( |
| 47 | 'open' => 'open', | 'id' => 'pid', |
| 48 | ), | 'table' => 'project_issues', |
| 49 | 'group' => '0', | 'field' => 'pid', |
| 50 | 'exposed' => TRUE, | ), |
| 51 | 'expose' => array( | )); |
| 52 | 'use_operator' => 0, | $handler->override_option('fields', array( |
| 'operator' => 'sid_op', | ||
| 'identifier' => 'status', | ||
| 'label' => 'Status', | ||
| 'optional' => 1, | ||
| 'single' => 1, | ||
| 'remember' => 0, | ||
| 'reduce' => 0, | ||
| ), | ||
| 'id' => 'sid', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'sid', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'priority' => array( | ||
| 'operator' => 'in', | ||
| 'value' => array(), | ||
| 'group' => '0', | ||
| 'exposed' => TRUE, | ||
| 'expose' => array( | ||
| 'use_operator' => 0, | ||
| 'operator' => 'priority_op', | ||
| 'identifier' => 'priorities', | ||
| 'label' => 'Priority', | ||
| 'optional' => 1, | ||
| 'single' => 1, | ||
| 'remember' => 0, | ||
| 'reduce' => 0, | ||
| ), | ||
| 'id' => 'priority', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'priority', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'category' => array( | ||
| 'operator' => 'in', | ||
| 'value' => array(), | ||
| 'group' => '0', | ||
| 'exposed' => TRUE, | ||
| 'expose' => array( | ||
| 'use_operator' => 0, | ||
| 'operator' => 'category_op', | ||
| 'identifier' => 'categories', | ||
| 'label' => 'Category', | ||
| 'optional' => 1, | ||
| 'single' => 1, | ||
| 'remember' => 0, | ||
| 'reduce' => 0, | ||
| ), | ||
| 'id' => 'category', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'category', | ||
| 'relationship' => 'none', | ||
| ), | ||
| )); | ||
| $handler->override_option('arguments', array( | ||
| 'term_node_tid_depth' => array( | ||
| 'id' => 'term_node_tid_depth', | ||
| 'table' => 'node', | ||
| 'field' => 'term_node_tid_depth', | ||
| 'default_action' => 'not found', | ||
| 'style_plugin' => 'default_summary', | ||
| 'style_options' => array( | ||
| 'count' => TRUE, | ||
| 'override' => FALSE, | ||
| 'items_per_page' => 25, | ||
| ), | ||
| 'wildcard' => 'all', | ||
| 'wildcard_substitution' => 'All', | ||
| 'title' => 'Project issues tagged with <em>%1</em>', | ||
| 'default_argument_type' => 'fixed', | ||
| 'default_argument' => '', | ||
| 'validate_type' => 'taxonomy_term', | ||
| 'validate_fail' => 'not found', | ||
| 'depth' => '0', | ||
| 'break_phrase' => 1, | ||
| 'relationship' => 'none', | ||
| 'default_argument_fixed' => '', | ||
| 'default_argument_php' => '', | ||
| 'validate_argument_node_type' => array( | ||
| 'album' => 0, | ||
| 'artist' => 0, | ||
| 'book' => 0, | ||
| 'page' => 0, | ||
| 'story' => 0, | ||
| 'track' => 0, | ||
| ), | ||
| 'validate_argument_vocabulary' => array( | ||
| '3' => 0, | ||
| '4' => 0, | ||
| '1' => 0, | ||
| '5' => 0, | ||
| '2' => 0, | ||
| ), | ||
| 'validate_argument_type' => 'tids', | ||
| 'validate_argument_php' => '', | ||
| ), | ||
| 'term_node_tid_depth_modifier' => array( | ||
| 'id' => 'term_node_tid_depth_modifier', | ||
| 'table' => 'node', | ||
| 'field' => 'term_node_tid_depth_modifier', | ||
| 'default_action' => 'ignore', | ||
| 'style_plugin' => 'default_summary', | ||
| 'style_options' => array( | ||
| 'count' => TRUE, | ||
| 'override' => FALSE, | ||
| 'items_per_page' => 25, | ||
| ), | ||
| 'wildcard' => 'all', | ||
| 'wildcard_substitution' => 'All', | ||
| 'title' => '', | ||
| 'default_argument_type' => 'fixed', | ||
| 'default_argument' => '', | ||
| 'validate_type' => 'none', | ||
| 'validate_fail' => 'not found', | ||
| ), | ||
| )); | ||
| $handler->override_option('access', array( | ||
| 'type' => 'none', | ||
| )); | ||
| $handler->override_option('title', 'Issues for all projects'); | ||
| $handler->override_option('items_per_page', 50); | ||
| $handler->override_option('use_pager', '1'); | ||
| $handler->override_option('style_plugin', 'project_issue_table'); | ||
| $handler->override_option('style_options', array( | ||
| 'grouping' => '', | ||
| 'override' => 1, | ||
| 'sticky' => 0, | ||
| 'order' => 'desc', | ||
| 'columns' => array( | ||
| 'project_issue_queue' => 'project_issue_queue', | ||
| 'title' => 'title', | ||
| 'sid' => 'sid', | ||
| 'priority' => 'priority', | ||
| 'category' => 'category', | ||
| 'comment_count' => 'comment_count', | ||
| 'new_comments' => 'comment_count', | ||
| 'last_comment_timestamp' => 'last_comment_timestamp', | ||
| 'name' => 'name', | ||
| ), | ||
| 'info' => array( | ||
| 53 | 'project_issue_queue' => array( | 'project_issue_queue' => array( |
| 54 | 'sortable' => 1, | 'label' => 'Project', |
| 55 | 'separator' => '', | 'exclude' => 0, |
| 56 | 'id' => 'project_issue_queue', | |
| 57 | 'table' => 'node', | |
| 58 | 'field' => 'project_issue_queue', | |
| 59 | 'relationship' => 'pid', | |
| 60 | ), | ), |
| 61 | 'title' => array( | 'title' => array( |
| 62 | 'sortable' => 1, | 'label' => 'Summary', |
| 63 | 'separator' => '', | 'link_to_node' => 1, |
| 64 | 'exclude' => 0, | |
| 65 | 'id' => 'title', | |
| 66 | 'table' => 'node', | |
| 67 | 'field' => 'title', | |
| 68 | 'relationship' => 'none', | |
| 69 | ), | ), |
| 70 | 'sid' => array( | 'sid' => array( |
| 71 | 'sortable' => 1, | 'id' => 'sid', |
| 72 | 'separator' => '', | 'table' => 'project_issues', |
| 73 | 'field' => 'sid', | |
| 74 | ), | ), |
| 75 | 'priority' => array( | 'priority' => array( |
| 76 | 'sortable' => 1, | 'id' => 'priority', |
| 77 | 'separator' => '', | 'table' => 'project_issues', |
| 78 | 'field' => 'priority', | |
| 79 | ), | ), |
| 80 | 'category' => array( | 'category' => array( |
| 81 | 'sortable' => 1, | 'label' => 'Category', |
| 82 | 'separator' => '', | 'link_to_node' => 0, |
| 83 | 'exclude' => 0, | |
| 84 | 'id' => 'category', | |
| 85 | 'table' => 'project_issues', | |
| 86 | 'field' => 'category', | |
| 87 | 'relationship' => 'none', | |
| 88 | ), | ), |
| 89 | 'comment_count' => array( | 'comment_count' => array( |
| 90 | 'sortable' => 1, | 'label' => 'Replies', |
| 91 | 'separator' => '<br />', | 'set_precision' => FALSE, |
| 92 | 'precision' => 0, | |
| 93 | 'decimal' => '.', | |
| 94 | 'separator' => ',', | |
| 95 | 'prefix' => '', | |
| 96 | 'suffix' => '', | |
| 97 | 'exclude' => 0, | |
| 98 | 'id' => 'comment_count', | |
| 99 | 'table' => 'node_comment_statistics', | |
| 100 | 'field' => 'comment_count', | |
| 101 | 'relationship' => 'none', | |
| 102 | ), | ), |
| 103 | 'new_comments' => array( | 'new_comments' => array( |
| 104 | 'separator' => '', | 'label' => 'New replies', |
| 105 | 'set_precision' => FALSE, | |
| 106 | 'precision' => 0, | |
| 107 | 'decimal' => '.', | |
| 108 | 'separator' => ',', | |
| 109 | 'prefix' => '', | |
| 110 | 'suffix' => ' new', | |
| 111 | 'link_to_comment' => 1, | |
| 112 | 'no_empty' => 1, | |
| 113 | 'exclude' => 0, | |
| 114 | 'id' => 'new_comments', | |
| 115 | 'table' => 'node', | |
| 116 | 'field' => 'new_comments', | |
| 117 | 'relationship' => 'none', | |
| 118 | ), | ), |
| 119 | 'last_comment_timestamp' => array( | 'last_comment_timestamp' => array( |
| 120 | 'sortable' => 1, | 'label' => 'Last updated', |
| 121 | 'separator' => '', | 'date_format' => 'time ago', |
| 122 | 'custom_date_format' => '', | |
| 123 | 'exclude' => 0, | |
| 124 | 'id' => 'last_comment_timestamp', | |
| 125 | 'table' => 'node_comment_statistics', | |
| 126 | 'field' => 'last_comment_timestamp', | |
| 127 | 'relationship' => 'none', | |
| 128 | ), | ), |
| 129 | 'name' => array( | 'name' => array( |
| 130 | 'sortable' => 1, | 'label' => 'Assigned to', |
| 131 | 'separator' => '', | 'link_to_user' => 1, |
| 132 | 'exclude' => 0, | |
| 133 | 'id' => 'name', | |
| 134 | 'table' => 'users', | |
| 135 | 'field' => 'name', | |
| 136 | 'relationship' => 'assigned', | |
| 137 | ), | |
| 138 | )); | |
| 139 | $handler->override_option('filters', array( | |
| 140 | 'type' => array( | |
| 141 | 'operator' => 'in', | |
| 142 | 'value' => array( | |
| 143 | 'project_issue' => 'project_issue', | |
| 144 | ), | |
| 145 | 'group' => '0', | |
| 146 | 'exposed' => FALSE, | |
| 147 | 'expose' => array( | |
| 148 | 'operator' => FALSE, | |
| 149 | 'label' => '', | |
| 150 | ), | |
| 151 | 'id' => 'type', | |
| 152 | 'table' => 'node', | |
| 153 | 'field' => 'type', | |
| 154 | 'relationship' => 'none', | |
| 155 | ), | |
| 156 | 'status_extra' => array( | |
| 157 | 'operator' => '=', | |
| 158 | 'value' => '', | |
| 159 | 'group' => '0', | |
| 160 | 'exposed' => FALSE, | |
| 161 | 'expose' => array( | |
| 162 | 'operator' => FALSE, | |
| 163 | 'label' => '', | |
| 164 | ), | |
| 165 | 'id' => 'status_extra', | |
| 166 | 'table' => 'node', | |
| 167 | 'field' => 'status_extra', | |
| 168 | 'relationship' => 'none', | |
| 169 | ), | ), |
| 170 | ), | 'title' => array( |
| 171 | 'default' => 'last_comment_timestamp', | 'operator' => '=', |
| 172 | )); | 'value' => '', |
| 173 | 'group' => '0', | |
| 174 | $handler = $view->new_display('page', 'Page', 'page_1'); | 'exposed' => TRUE, |
| 175 | $handler->override_option('path', 'project/issues-term/%'); | 'expose' => array( |
| 176 | $handler->override_option('menu', array( | 'use_operator' => 0, |
| 177 | 'type' => 'normal', | 'operator' => 'title_op', |
| 178 | 'title' => 'Issues', | 'identifier' => 'title', |
| 179 | 'weight' => '0', | 'label' => 'Project', |
| 180 | 'name' => 'navigation', | 'optional' => 1, |
| 181 | )); | 'remember' => 0, |
| 182 | $handler->override_option('tab_options', array( | ), |
| 183 | 'type' => 'none', | 'case' => 0, |
| 184 | 'title' => '', | 'id' => 'title', |
| 185 | 'weight' => 0, | 'table' => 'node', |
| 186 | )); | 'field' => 'title', |
| 187 | 'relationship' => 'pid', | |
| 188 | $handler = $view->new_display('feed', 'Feed', 'feed'); | ), |
| 189 | $handler->override_option('sorts', array( | 'sid' => array( |
| 190 | 'last_comment_timestamp' => array( | 'operator' => 'in', |
| 191 | 'order' => 'DESC', | 'value' => array( |
| 192 | 'granularity' => 'second', | 'open' => 'open', |
| 193 | 'id' => 'last_comment_timestamp', | ), |
| 194 | 'table' => 'node_comment_statistics', | 'group' => '0', |
| 195 | 'field' => 'last_comment_timestamp', | 'exposed' => TRUE, |
| 196 | 'override' => array( | 'expose' => array( |
| 197 | 'button' => 'Use default', | 'use_operator' => 0, |
| 198 | ), | 'operator' => 'sid_op', |
| 199 | 'relationship' => 'none', | 'identifier' => 'status', |
| 200 | ), | 'label' => 'Status', |
| 201 | )); | 'optional' => 1, |
| 202 | $handler->override_option('style_plugin', 'rss'); | 'single' => 1, |
| 203 | $handler->override_option('style_options', array( | 'remember' => 0, |
| 204 | 'mission_description' => FALSE, | 'reduce' => 0, |
| 205 | 'description' => '', | ), |
| 206 | )); | 'id' => 'sid', |
| 207 | $handler->override_option('row_plugin', 'node_rss'); | 'table' => 'project_issues', |
| 208 | $handler->override_option('path', 'project/issues-term/%/%/feed'); | 'field' => 'sid', |
| 209 | $handler->override_option('menu', array( | 'relationship' => 'none', |
| 210 | 'type' => 'none', | ), |
| 211 | 'title' => '', | 'priority' => array( |
| 212 | 'weight' => 0, | 'operator' => 'in', |
| 213 | 'name' => '', | 'value' => array(), |
| 214 | )); | 'group' => '0', |
| 215 | $handler->override_option('tab_options', array( | 'exposed' => TRUE, |
| 216 | 'type' => 'none', | 'expose' => array( |
| 217 | 'title' => '', | 'use_operator' => 0, |
| 218 | 'weight' => 0, | 'operator' => 'priority_op', |
| 219 | )); | 'identifier' => 'priorities', |
| 220 | $handler->override_option('displays', array( | 'label' => 'Priority', |
| 221 | 'page_1' => 'page_1', | 'optional' => 1, |
| 222 | 'default' => 0, | 'single' => 1, |
| 223 | )); | 'remember' => 0, |
| 224 | $handler->override_option('sitename_title', FALSE); | 'reduce' => 0, |
| 225 | ), | |
| 226 | $handler = $view->new_display('feed', 'Views 1 feed', 'feed_1'); | 'id' => 'priority', |
| 227 | $handler->override_option('items_per_page', 15); | 'table' => 'project_issues', |
| 228 | $handler->override_option('use_pager', '1'); | 'field' => 'priority', |
| 229 | $handler->override_option('row_plugin', 'node_rss'); | 'relationship' => 'none', |
| 230 | $handler->override_option('row_options', array( | ), |
| 231 | 'item_length' => 'default', | 'category' => array( |
| 232 | )); | 'operator' => 'in', |
| 233 | $handler->override_option('path', 'project/issues-term/%/feed'); | 'value' => array(), |
| 234 | $handler->override_option('menu', array( | 'group' => '0', |
| 235 | 'type' => 'none', | 'exposed' => TRUE, |
| 236 | 'title' => '', | 'expose' => array( |
| 237 | 'weight' => 0, | 'use_operator' => 0, |
| 238 | )); | 'operator' => 'category_op', |
| 239 | $handler->override_option('tab_options', array( | 'identifier' => 'categories', |
| 240 | 'type' => 'none', | 'label' => 'Category', |
| 241 | 'title' => '', | 'optional' => 1, |
| 242 | 'weight' => 0, | 'single' => 1, |
| 243 | )); | 'remember' => 0, |
| 244 | 'reduce' => 0, | |
| 245 | $views[$view->name] = $view; | ), |
| 246 | 'id' => 'category', | |
| 247 | // ---------------------------------------- | 'table' => 'project_issues', |
| 248 | // Term view for a specific project | 'field' => 'category', |
| 249 | // ---------------------------------------- | 'relationship' => 'none', |
| 250 | ), | |
| 251 | $view = new view; | )); |
| 252 | $view->name = 'project_issues_tag_by_project'; | $handler->override_option('arguments', array( |
| 253 | $view->description = 'Project issues by project by issue tag'; | 'term_node_tid_depth' => array( |
| 254 | $view->tag = 'Project issue'; | 'id' => 'term_node_tid_depth', |
| 255 | $view->view_php = ''; | 'table' => 'node', |
| 256 | $view->base_table = 'node'; | 'field' => 'term_node_tid_depth', |
| 257 | $view->is_cacheable = FALSE; | 'default_action' => 'not found', |
| 258 | $view->api_version = 2; | 'style_plugin' => 'default_summary', |
| 259 | $view->disabled = FALSE; | 'style_options' => array( |
| 260 | 'count' => TRUE, | |
| 261 | $handler = $view->new_display('default', 'Defaults', 'default'); | 'override' => FALSE, |
| 262 | $handler->override_option('relationships', array( | 'items_per_page' => 25, |
| 263 | 'assigned' => array( | ), |
| 264 | 'label' => 'Assigned user', | 'wildcard' => 'all', |
| 265 | 'required' => 0, | 'wildcard_substitution' => 'All', |
| 266 | 'id' => 'assigned', | 'title' => 'Project issues tagged with <em>%1</em>', |
| 267 | 'table' => 'project_issues', | 'default_argument_type' => 'fixed', |
| 268 | 'field' => 'assigned', | 'default_argument' => '', |
| 269 | 'relationship' => 'none', | 'validate_type' => 'taxonomy_term', |
| 270 | ), | 'validate_fail' => 'not found', |
| 271 | 'rid' => array( | 'depth' => '0', |
| 272 | 'label' => 'Version', | 'break_phrase' => 1, |
| 273 | 'required' => 0, | 'relationship' => 'none', |
| 274 | 'id' => 'rid', | 'default_argument_fixed' => '', |
| 275 | 'table' => 'project_issues', | 'default_argument_php' => '', |
| 276 | 'field' => 'rid', | 'validate_argument_node_type' => array( |
| 277 | 'relationship' => 'none', | 'album' => 0, |
| 278 | ), | 'artist' => 0, |
| 279 | )); | 'book' => 0, |
| 280 | $handler->override_option('fields', array( | 'page' => 0, |
| 281 | 'title' => array( | 'story' => 0, |
| 282 | 'label' => 'Summary', | 'track' => 0, |
| 283 | 'link_to_node' => 1, | ), |
| 284 | 'exclude' => 0, | 'validate_argument_vocabulary' => array( |
| 285 | 'id' => 'title', | '3' => 0, |
| 286 | 'table' => 'node', | '4' => 0, |
| 287 | 'field' => 'title', | '1' => 0, |
| 288 | 'relationship' => 'none', | '5' => 0, |
| 289 | ), | '2' => 0, |
| 290 | 'sid' => array( | ), |
| 291 | 'id' => 'sid', | 'validate_argument_type' => 'tids', |
| 292 | 'table' => 'project_issues', | 'validate_argument_php' => '', |
| 293 | 'field' => 'sid', | ), |
| 294 | ), | 'term_node_tid_depth_modifier' => array( |
| 295 | 'priority' => array( | 'id' => 'term_node_tid_depth_modifier', |
| 296 | 'id' => 'priority', | 'table' => 'node', |
| 297 | 'table' => 'project_issues', | 'field' => 'term_node_tid_depth_modifier', |
| 298 | 'field' => 'priority', | 'default_action' => 'ignore', |
| 299 | ), | 'style_plugin' => 'default_summary', |
| 300 | 'category' => array( | 'style_options' => array( |
| 301 | 'label' => 'Category', | 'count' => TRUE, |
| 302 | 'link_to_node' => 0, | 'override' => FALSE, |
| 303 | 'exclude' => 0, | 'items_per_page' => 25, |
| 304 | 'id' => 'category', | ), |
| 305 | 'table' => 'project_issues', | 'wildcard' => 'all', |
| 306 | 'field' => 'category', | 'wildcard_substitution' => 'All', |
| 307 | 'relationship' => 'none', | 'title' => '', |
| 308 | ), | 'default_argument_type' => 'fixed', |
| 309 | 'version' => array( | 'default_argument' => '', |
| 310 | 'label' => 'Version', | 'validate_type' => 'none', |
| 311 | 'link_to_node' => 0, | 'validate_fail' => 'not found', |
| 312 | 'exclude' => 0, | ), |
| 313 | 'id' => 'version', | )); |
| 314 | 'table' => 'project_release_nodes', | $handler->override_option('access', array( |
| 315 | 'field' => 'version', | 'type' => 'none', |
| 316 | 'relationship' => 'rid', | )); |
| 317 | ), | $handler->override_option('title', 'Issues for all projects'); |
| 318 | 'component' => array( | $handler->override_option('items_per_page', 50); |
| 319 | 'label' => 'Component', | $handler->override_option('use_pager', '1'); |
| 320 | 'link_to_node' => 0, | $handler->override_option('style_plugin', 'project_issue_table'); |
| 321 | 'exclude' => 0, | $handler->override_option('style_options', array( |
| 322 | 'id' => 'component', | 'grouping' => '', |
| 323 | 'table' => 'project_issues', | 'override' => 1, |
| 324 | 'field' => 'component', | 'sticky' => 0, |
| 325 | 'relationship' => 'none', | 'order' => 'desc', |
| 326 | ), | 'columns' => array( |
| 327 | 'comment_count' => array( | 'project_issue_queue' => 'project_issue_queue', |
| 328 | 'label' => 'Replies', | 'title' => 'title', |
| 329 | 'set_precision' => FALSE, | 'sid' => 'sid', |
| 330 | 'precision' => 0, | 'priority' => 'priority', |
| 331 | 'decimal' => '.', | 'category' => 'category', |
| 332 | 'separator' => ',', | 'comment_count' => 'comment_count', |
| 333 | 'prefix' => '', | 'new_comments' => 'comment_count', |
| 334 | 'suffix' => '', | 'last_comment_timestamp' => 'last_comment_timestamp', |
| 335 | 'exclude' => 0, | 'name' => 'name', |
| 336 | 'id' => 'comment_count', | ), |
| 337 | 'table' => 'node_comment_statistics', | 'info' => array( |
| 338 | 'field' => 'comment_count', | 'project_issue_queue' => array( |
| 339 | 'relationship' => 'none', | 'sortable' => 1, |
| 340 | ), | 'separator' => '', |
| 341 | 'new_comments' => array( | ), |
| 342 | 'label' => 'New replies', | 'title' => array( |
| 343 | 'set_precision' => FALSE, | 'sortable' => 1, |
| 344 | 'precision' => 0, | 'separator' => '', |
| 345 | 'decimal' => '.', | ), |
| 346 | 'separator' => ',', | 'sid' => array( |
| 347 | 'prefix' => '', | 'sortable' => 1, |
| 348 | 'suffix' => ' new', | 'separator' => '', |
| 349 | 'link_to_comment' => 1, | ), |
| 350 | 'no_empty' => 1, | 'priority' => array( |
| 351 | 'exclude' => 0, | 'sortable' => 1, |
| 352 | 'id' => 'new_comments', | 'separator' => '', |
| 353 | 'table' => 'node', | ), |
| 354 | 'field' => 'new_comments', | 'category' => array( |
| 355 | 'relationship' => 'none', | 'sortable' => 1, |
| 356 | ), | 'separator' => '', |
| 357 | 'last_comment_timestamp' => array( | ), |
| 358 | 'label' => 'Last updated', | 'comment_count' => array( |
| 359 | 'date_format' => 'time ago', | 'sortable' => 1, |
| 360 | 'custom_date_format' => '', | 'separator' => '<br />', |
| 361 | 'exclude' => 0, | ), |
| 362 | 'id' => 'last_comment_timestamp', | 'new_comments' => array( |
| 363 | 'table' => 'node_comment_statistics', | 'separator' => '', |
| 364 | 'field' => 'last_comment_timestamp', | ), |
| 365 | 'relationship' => 'none', | 'last_comment_timestamp' => array( |
| 366 | ), | 'sortable' => 1, |
| 367 | 'name' => array( | 'separator' => '', |
| 368 | 'label' => 'Assigned to', | ), |
| 369 | 'link_to_user' => 1, | 'name' => array( |
| 370 | 'exclude' => 0, | 'sortable' => 1, |
| 371 | 'id' => 'name', | 'separator' => '', |
| 372 | 'table' => 'users', | ), |
| 373 | 'field' => 'name', | ), |
| 374 | 'relationship' => 'assigned', | 'default' => 'last_comment_timestamp', |
| 375 | ), | )); |
| 376 | )); | |
| 377 | $handler->override_option('arguments', array( | $handler = $view->new_display('page', 'Page', 'page_1'); |
| 378 | 'pid' => array( | $handler->override_option('path', 'project/issues-term/%'); |
| 379 | 'default_action' => 'not found', | $handler->override_option('menu', array( |
| 380 | 'style_plugin' => 'default_summary', | 'type' => 'normal', |
| 381 | 'style_options' => array(), | 'title' => 'Issues', |
| 382 | 'wildcard' => '', | 'weight' => '0', |
| 383 | 'wildcard_substitution' => '', | 'name' => 'navigation', |
| 384 | 'title' => 'Issues for %1', | )); |
| 385 | 'default_argument_type' => 'fixed', | $handler->override_option('tab_options', array( |
| 386 | 'default_argument' => '', | 'type' => 'none', |
| 387 | 'validate_type' => 'project_nid', | 'title' => '', |
| 388 | 'validate_fail' => 'not found', | 'weight' => 0, |
| 389 | 'break_phrase' => 0, | )); |
| 390 | 'not' => 0, | |
| 391 | 'id' => 'pid', | $handler = $view->new_display('feed', 'Feed', 'feed'); |
| 392 | 'table' => 'project_issues', | $handler->override_option('sorts', array( |
| 393 | 'field' => 'pid', | 'last_comment_timestamp' => array( |
| 394 | 'relationship' => 'none', | 'order' => 'DESC', |
| 395 | 'default_options_div_prefix' => '', | 'granularity' => 'second', |
| 396 | 'default_argument_user' => 0, | 'id' => 'last_comment_timestamp', |
| 397 | 'default_argument_fixed' => '', | 'table' => 'node_comment_statistics', |
| 398 | 'default_argument_php' => '', | 'field' => 'last_comment_timestamp', |
| 399 | ), | 'override' => array( |
| 400 | 'term_node_tid_depth' => array( | 'button' => 'Use default', |
| 401 | 'id' => 'term_node_tid_depth', | ), |
| 402 | 'table' => 'node', | 'relationship' => 'none', |
| 403 | 'field' => 'term_node_tid_depth', | ), |
| 404 | 'default_action' => 'not found', | )); |
| 405 | 'style_plugin' => 'default_summary', | $handler->override_option('style_plugin', 'rss'); |
| 406 | 'style_options' => array( | $handler->override_option('style_options', array( |
| 407 | 'count' => TRUE, | 'mission_description' => FALSE, |
| 408 | 'override' => FALSE, | 'description' => '', |
| 409 | 'items_per_page' => 25, | )); |
| 410 | ), | $handler->override_option('row_plugin', 'node_rss'); |
| 411 | 'wildcard' => 'all', | $handler->override_option('path', 'project/issues-term/%/%/feed'); |
| 412 | 'wildcard_substitution' => 'All', | $handler->override_option('menu', array( |
| 413 | 'title' => 'Issues for <em>%1</em> tagged with <em>%2</em>', | 'type' => 'none', |
| 414 | 'default_argument_type' => 'fixed', | 'title' => '', |
| 415 | 'default_argument' => '', | 'weight' => 0, |
| 416 | 'validate_type' => 'taxonomy_term', | 'name' => '', |
| 417 | 'validate_fail' => 'not found', | )); |
| 418 | 'depth' => '0', | $handler->override_option('tab_options', array( |
| 419 | 'break_phrase' => 1, | 'type' => 'none', |
| 420 | 'relationship' => 'none', | 'title' => '', |
| 421 | 'default_argument_fixed' => '', | 'weight' => 0, |
| 422 | 'default_argument_php' => '', | )); |
| 423 | 'validate_argument_node_type' => array( | $handler->override_option('displays', array( |
| 424 | 'album' => 0, | 'page_1' => 'page_1', |
| 425 | 'artist' => 0, | 'default' => 0, |
| 426 | 'book' => 0, | )); |
| 427 | 'page' => 0, | $handler->override_option('sitename_title', FALSE); |
| 428 | 'story' => 0, | |
| 429 | 'track' => 0, | $handler = $view->new_display('feed', 'Views 1 feed', 'feed_1'); |
| 430 | ), | $handler->override_option('items_per_page', 15); |
| 431 | 'validate_argument_vocabulary' => array( | $handler->override_option('use_pager', '1'); |
| 432 | '3' => 0, | $handler->override_option('row_plugin', 'node_rss'); |
| 433 | '4' => 0, | $handler->override_option('row_options', array( |
| 434 | '1' => 0, | 'item_length' => 'default', |
| 435 | '5' => 0, | )); |
| 436 | '2' => 0, | $handler->override_option('path', 'project/issues-term/%/feed'); |
| 437 | ), | $handler->override_option('menu', array( |
| 438 | 'validate_argument_type' => 'tids', | 'type' => 'none', |
| 439 | 'validate_argument_php' => '', | 'title' => '', |
| 440 | ), | 'weight' => 0, |
| 441 | 'term_node_tid_depth_modifier' => array( | )); |
| 442 | 'id' => 'term_node_tid_depth_modifier', | $handler->override_option('tab_options', array( |
| 443 | 'table' => 'node', | 'type' => 'none', |
| 444 | 'field' => 'term_node_tid_depth_modifier', | 'title' => '', |
| 445 | 'default_action' => 'ignore', | 'weight' => 0, |
| 446 | 'style_plugin' => 'default_summary', | )); |
| 447 | 'style_options' => array( | |
| 448 | 'count' => TRUE, | $views[$view->name] = $view; |
| 449 | 'override' => FALSE, | |
| 450 | 'items_per_page' => 25, | // ---------------------------------------- |
| 451 | ), | // Term view for a specific project |
| 452 | 'wildcard' => 'all', | // ---------------------------------------- |
| 453 | 'wildcard_substitution' => 'All', | |
| 454 | 'title' => '', | $view = new view; |
| 455 | 'default_argument_type' => 'fixed', | $view->name = 'project_issues_tag_by_project'; |
| 456 | 'default_argument' => '', | $view->description = 'Project issues by project by issue tag'; |
| 457 | 'validate_type' => 'none', | $view->tag = 'Project issue'; |
| 458 | 'validate_fail' => 'not found', | $view->view_php = ''; |
| 459 | ), | $view->base_table = 'node'; |
| 460 | )); | $view->is_cacheable = FALSE; |
| 461 | $handler->override_option('filters', array( | $view->api_version = 2; |
| 462 | 'type' => array( | $view->disabled = FALSE; |
| 463 | 'operator' => 'in', | |
| 464 | 'value' => array( | $handler = $view->new_display('default', 'Defaults', 'default'); |
| 465 | 'project_issue' => 'project_issue', | $handler->override_option('relationships', array( |
| 466 | ), | 'assigned' => array( |
| 467 | 'group' => '0', | 'label' => 'Assigned user', |
| 468 | 'exposed' => FALSE, | 'required' => 0, |
| 469 | 'expose' => array( | 'id' => 'assigned', |
| 470 | 'operator' => FALSE, | 'table' => 'project_issues', |
| 471 | 'label' => '', | 'field' => 'assigned', |
| 472 | ), | 'relationship' => 'none', |
| 473 | 'id' => 'type', | ), |
| 474 | 'table' => 'node', | 'rid' => array( |
| 'field' => 'type', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'status_extra' => array( | ||
| 'operator' => '=', | ||
| 'value' => '', | ||
| 'group' => '0', | ||
| 'exposed' => FALSE, | ||
| 'expose' => array( | ||
| 'operator' => FALSE, | ||
| 'label' => '', | ||
| ), | ||
| 'id' => 'status_extra', | ||
| 'table' => 'node', | ||
| 'field' => 'status_extra', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'sid' => array( | ||
| 'operator' => 'in', | ||
| 'value' => array( | ||
| 'open' => 'open', | ||
| ), | ||
| 'group' => '0', | ||
| 'exposed' => TRUE, | ||
| 'expose' => array( | ||
| 'use_operator' => 0, | ||
| 'operator' => 'sid_op', | ||
| 'identifier' => 'status', | ||
| 'label' => 'Status', | ||
| 'optional' => 1, | ||
| 'single' => 1, | ||
| 'remember' => 0, | ||
| 'reduce' => 0, | ||
| ), | ||
| 'id' => 'sid', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'sid', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'priority' => array( | ||
| 'operator' => 'in', | ||
| 'value' => array(), | ||
| 'group' => '0', | ||
| 'exposed' => TRUE, | ||
| 'expose' => array( | ||
| 'use_operator' => 0, | ||
| 'operator' => 'priority_op', | ||
| 'identifier' => 'priorities', | ||
| 'label' => 'Priority', | ||
| 'optional' => 1, | ||
| 'single' => 1, | ||
| 'remember' => 0, | ||
| 'reduce' => 0, | ||
| ), | ||
| 'id' => 'priority', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'priority', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'category' => array( | ||
| 'operator' => 'in', | ||
| 'value' => array(), | ||
| 'group' => '0', | ||
| 'exposed' => TRUE, | ||
| 'expose' => array( | ||
| 'use_operator' => 0, | ||
| 'operator' => 'category_op', | ||
| 'identifier' => 'categories', | ||
| 'label' => 'Category', | ||
| 'optional' => 1, | ||
| 'single' => 1, | ||
| 'remember' => 0, | ||
| 'reduce' => 0, | ||
| ), | ||
| 'id' => 'category', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'category', | ||
| 'relationship' => 'none', | ||
| ), | ||
| 'rid' => array( | ||
| 'operator' => 'in', | ||
| 'value' => array(), | ||
| 'group' => '0', | ||
| 'exposed' => TRUE, | ||
| 'expose' => array( | ||
| 'use_operator' => 0, | ||
| 'operator' => 'rid_op', | ||
| 'identifier' => 'version', | ||
| 475 | 'label' => 'Version', | 'label' => 'Version', |
| 476 | 'optional' => 1, | 'required' => 0, |
| 477 | 'single' => 1, | 'id' => 'rid', |
| 478 | 'remember' => 0, | 'table' => 'project_issues', |
| 479 | 'reduce' => 0, | 'field' => 'rid', |
| 480 | ), | 'relationship' => 'none', |
| 481 | 'id' => 'rid', | ), |
| 482 | 'table' => 'project_issues', | )); |
| 483 | 'field' => 'rid', | $handler->override_option('fields', array( |
| 'relationship' => 'none', | ||
| ), | ||
| 'component' => array( | ||
| 'operator' => 'in', | ||
| 'value' => array(), | ||
| 'group' => '0', | ||
| 'exposed' => TRUE, | ||
| 'expose' => array( | ||
| 'use_operator' => 0, | ||
| 'operator' => 'component_op', | ||
| 'identifier' => 'component', | ||
| 'label' => 'Component', | ||
| 'optional' => 1, | ||
| 'single' => 1, | ||
| 'remember' => 0, | ||
| 'reduce' => 0, | ||
| ), | ||
| 'id' => 'component', | ||
| 'table' => 'project_issues', | ||
| 'field' => 'component', | ||
| 'relationship' => 'none', | ||
| ), | ||
| )); | ||
| $handler->override_option('access', array( | ||
| 'type' => 'none', | ||
| )); | ||
| $handler->override_option('title', 'Issues by project'); | ||
| $handler->override_option('items_per_page', 50); | ||
| $handler->override_option('use_pager', '1'); | ||
| $handler->override_option('style_plugin', 'project_issue_table'); | ||
| $handler->override_option('style_options', array( | ||
| 'grouping' => '', | ||
| 'override' => 1, | ||
| 'sticky' => 0, | ||
| 'order' => 'desc', | ||
| 'columns' => array( | ||
| 'title' => 'title', | ||
| 'sid' => 'sid', | ||
| 'priority' => 'priority', | ||
| 'category' => 'category', | ||
| 'version' => 'version', | ||
| 'component' => 'component', | ||
| 'comment_count' => 'comment_count', | ||
| 'new_comments' => 'comment_count', | ||
| 'last_comment_timestamp' => 'last_comment_timestamp', | ||
| 'name' => 'name', | ||
| ), | ||
| 'info' => array( | ||
| 484 | 'title' => array( | 'title' => array( |
| 485 | 'sortable' => 1, | 'label' => 'Summary', |
| 486 | 'separator' => '', | 'link_to_node' => 1, |
| 487 | 'exclude' => 0, | |
| 488 | 'id' => 'title', | |
| 489 | 'table' => 'node', | |
| 490 | 'field' => 'title', | |
| 491 | 'relationship' => 'none', | |
| 492 | ), | ), |
| 493 | 'sid' => array( | 'sid' => array( |
| 494 | 'sortable' => 1, | 'id' => 'sid', |
| 495 | 'separator' => '', | 'table' => 'project_issues', |
| 496 | 'field' => 'sid', | |
| 497 | ), | ), |
| 498 | 'priority' => array( | 'priority' => array( |
| 499 | 'sortable' => 1, | 'id' => 'priority', |
| 500 | 'separator' => '', | 'table' => 'project_issues', |
| 501 | 'field' => 'priority', | |
| 502 | ), | ), |
| 503 | 'category' => array( | 'category' => array( |
| 504 | 'sortable' => 1, | 'label' => 'Category', |
| 505 | 'separator' => '', | 'link_to_node' => 0, |
| 506 | 'exclude' => 0, | |
| 507 | 'id' => 'category', | |
| 508 | 'table' => 'project_issues', | |
| 509 | 'field' => 'category', | |
| 510 | 'relationship' => 'none', | |
| 511 | ), | ), |
| 512 | 'version' => array( | 'version' => array( |
| 513 | 'sortable' => 1, | 'label' => 'Version', |
| 514 | 'separator' => '', | 'link_to_node' => 0, |
| 515 | 'exclude' => 0, | |
| 516 | 'id' => 'version', | |
| 517 | 'table' => 'project_release_nodes', | |
| 518 | 'field' => 'version', | |
| 519 | 'relationship' => 'rid', | |
| 520 | ), | ), |
| 521 | 'component' => array( | 'component' => array( |
| 522 | 'sortable' => 1, | 'label' => 'Component', |
| 523 | 'separator' => '', | 'link_to_node' => 0, |
| 524 | 'exclude' => 0, | |
| 525 | 'id' => 'component', | |
| 526 | 'table' => 'project_issues', | |
| 527 | 'field' => 'component', | |
| 528 | 'relationship' => 'none', | |
| 529 | ), | ), |
| 530 | 'comment_count' => array( | 'comment_count' => array( |
| 531 | 'sortable' => 1, | 'label' => 'Replies', |
| 532 | 'separator' => '<br />', | 'set_precision' => FALSE, |
| 533 | 'precision' => 0, | |
| 534 | 'decimal' => '.', | |
| 535 | 'separator' => ',', | |
| 536 | 'prefix' => '', | |
| 537 | 'suffix' => '', | |
| 538 | 'exclude' => 0, | |
| 539 | 'id' => 'comment_count', | |
| 540 | 'table' => 'node_comment_statistics', | |
| 541 | 'field' => 'comment_count', | |
| 542 | 'relationship' => 'none', | |
| 543 | ), | ), |
| 544 | 'new_comments' => array( | 'new_comments' => array( |
| 545 | 'separator' => '', | 'label' => 'New replies', |
| 546 | 'set_precision' => FALSE, | |
| 547 | 'precision' => 0, | |
| 548 | 'decimal' => '.', | |
| 549 | 'separator' => ',', | |
| 550 | 'prefix' => '', | |
| 551 | 'suffix' => ' new', | |
| 552 | 'link_to_comment' => 1, | |
| 553 | 'no_empty' => 1, | |
| 554 | 'exclude' => 0, | |
| 555 | 'id' => 'new_comments', | |
| 556 | 'table' => 'node', | |
| 557 | 'field' => 'new_comments', | |
| 558 | 'relationship' => 'none', | |
| 559 | ), | ), |
| 560 | 'last_comment_timestamp' => array( | 'last_comment_timestamp' => array( |
| 561 | 'sortable' => 1, | 'label' => 'Last updated', |
| 562 | 'separator' => '', | 'date_format' => 'time ago', |
| 563 | 'custom_date_format' => '', | |
| 564 | 'exclude' => 0, | |
| 565 | 'id' => 'last_comment_timestamp', | |
| 566 | 'table' => 'node_comment_statistics', | |
| 567 | 'field' => 'last_comment_timestamp', | |
| 568 | 'relationship' => 'none', | |
| 569 | ), | ), |
| 570 | 'name' => array( | 'name' => array( |
| 571 | 'sortable' => 1, | 'label' => 'Assigned to', |
| 572 | 'separator' => '', | 'link_to_user' => 1, |
| 573 | 'exclude' => 0, | |
| 574 | 'id' => 'name', | |
| 575 | 'table' => 'users', | |
| 576 | 'field' => 'name', | |
| 577 | 'relationship' => 'assigned', | |
| 578 | ), | |
| 579 | )); | |
| 580 | $handler->override_option('arguments', array( | |
| 581 | 'pid' => array( | |
| 582 | 'default_action' => 'not found', | |
| 583 | 'style_plugin' => 'default_summary', | |
| 584 | 'style_options' => array(), | |
| 585 | 'wildcard' => '', | |
| 586 | 'wildcard_substitution' => '', | |
| 587 | 'title' => 'Issues for %1', | |
| 588 | 'default_argument_type' => 'fixed', | |
| 589 | 'default_argument' => '', | |
| 590 | 'validate_type' => 'project_nid', | |
| 591 | 'validate_fail' => 'not found', | |
| 592 | 'break_phrase' => 0, | |
| 593 | 'not' => 0, | |
| 594 | 'id' => 'pid', | |
| 595 | 'table' => 'project_issues', | |
| 596 | 'field' => 'pid', | |
| 597 | 'relationship' => 'none', | |
| 598 | 'default_options_div_prefix' => '', | |
| 599 | 'default_argument_user' => 0, | |
| 600 | 'default_argument_fixed' => '', | |
| 601 | 'default_argument_php' => '', | |
| 602 | ), | |
| 603 | 'term_node_tid_depth' => array( | |
| 604 | 'id' => 'term_node_tid_depth', | |
| 605 | 'table' => 'node', | |
| 606 | 'field' => 'term_node_tid_depth', | |
| 607 | 'default_action' => 'not found', | |
| 608 | 'style_plugin' => 'default_summary', | |
| 609 | 'style_options' => array( | |
| 610 | 'count' => TRUE, | |
| 611 | 'override' => FALSE, | |
| 612 | 'items_per_page' => 25, | |
| 613 | ), | |
| 614 | 'wildcard' => 'all', | |
| 615 | 'wildcard_substitution' => 'All', | |
| 616 | 'title' => 'Issues for <em>%1</em> tagged with <em>%2</em>', | |
| 617 | 'default_argument_type' => 'fixed', | |
| 618 | 'default_argument' => '', | |
| 619 | 'validate_type' => 'taxonomy_term', | |
| 620 | 'validate_fail' => 'not found', | |
| 621 | 'depth' => '0', | |
| 622 | 'break_phrase' => 1, | |
| 623 | 'relationship' => 'none', | |
| 624 | 'default_argument_fixed' => '', | |
| 625 | 'default_argument_php' => '', | |
| 626 | 'validate_argument_node_type' => array( | |
| 627 | 'album' => 0, | |
| 628 | 'artist' => 0, | |
| 629 | 'book' => 0, | |
| 630 | 'page' => 0, | |
| 631 | 'story' => 0, | |
| 632 | 'track' => 0, | |
| 633 | ), | |
| 634 | 'validate_argument_vocabulary' => array( | |
| 635 | '3' => 0, | |
| 636 | '4' => 0, | |
| 637 | '1' => 0, | |
| 638 | '5' => 0, | |
| 639 | '2' => 0, | |
| 640 | ), | |
| 641 | 'validate_argument_type' => 'tids', | |
| 642 | 'validate_argument_php' => '', | |
| 643 | ), | |
| 644 | 'term_node_tid_depth_modifier' => array( | |
| 645 | 'id' => 'term_node_tid_depth_modifier', | |
| 646 | 'table' => 'node', | |
| 647 | 'field' => 'term_node_tid_depth_modifier', | |
| 648 | 'default_action' => 'ignore', | |
| 649 | 'style_plugin' => 'default_summary', | |
| 650 | 'style_options' => array( | |
| 651 | 'count' => TRUE, | |
| 652 | 'override' => FALSE, | |
| 653 | 'items_per_page' => 25, | |
| 654 | ), | |
| 655 | 'wildcard' => 'all', | |
| 656 | 'wildcard_substitution' => 'All', | |
| 657 | 'title' => '', | |
| 658 | 'default_argument_type' => 'fixed', | |
| 659 | 'default_argument' => '', | |
| 660 | 'validate_type' => 'none', | |
| 661 | 'validate_fail' => 'not found', | |
| 662 | ), | |
| 663 | )); | |
| 664 | $handler->override_option('filters', array( | |
| 665 | 'type' => array( | |
| 666 | 'operator' => 'in', | |
| 667 | 'value' => array( | |
| 668 | 'project_issue' => 'project_issue', | |
| 669 | ), | |
| 670 | 'group' => '0', | |
| 671 | 'exposed' => FALSE, | |
| 672 | 'expose' => array( | |
| 673 | 'operator' => FALSE, | |
| 674 | 'label' => '', | |
| 675 | ), | |
| 676 | 'id' => 'type', | |
| 677 | 'table' => 'node', | |
| 678 | 'field' => 'type', | |
| 679 | 'relationship' => 'none', | |
| 680 | ), | |
| 681 | 'status_extra' => array( | |
| 682 | 'operator' => '=', | |
| 683 | 'value' => '', | |
| 684 | 'group' => '0', | |
| 685 | 'exposed' => FALSE, | |
| 686 | 'expose' => array( | |
| 687 | 'operator' => FALSE, | |
| 688 | 'label' => '', | |
| 689 | ), | |
| 690 | 'id' => 'status_extra', | |
| 691 | 'table' => 'node', | |
| 692 | 'field' => 'status_extra', | |
| 693 | 'relationship' => 'none', | |
| 694 | ), | ), |
| 695 | ), | 'sid' => array( |
| 696 | 'default' => 'last_comment_timestamp', | 'operator' => 'in', |
| 697 | )); | 'value' => array( |
| 698 | 'open' => 'open', | |
| 699 | $handler = $view->new_display('page', 'Page', 'page_1'); | ), |
| 700 | $handler->override_option('path', 'project/issues/%/term/%'); | 'group' => '0', |
| 701 | $handler->override_option('menu', array( | 'exposed' => TRUE, |
| 702 | 'type' => 'none', | 'expose' => array( |
| 703 | 'title' => '', | 'use_operator' => 0, |
| 704 | 'weight' => '0', | 'operator' => 'sid_op', |
| 705 | 'name' => '', | 'identifier' => 'status', |
| 706 | )); | 'label' => 'Status', |
| 707 | $handler->override_option('tab_options', array( | 'optional' => 1, |
| 708 | 'type' => 'none', | 'single' => 1, |
| 709 | 'title' => '', | 'remember' => 0, |
| 710 | 'weight' => 0, | 'reduce' => 0, |
| 711 | )); | ), |
| 712 | 'id' => 'sid', | |
| 713 | $handler = $view->new_display('feed', 'Feed', 'feed'); | 'table' => 'project_issues', |
| 714 | $handler->override_option('sorts', array( | 'field' => 'sid', |
| 715 | 'last_comment_timestamp' => array( | 'relationship' => 'none', |
| 716 | 'order' => 'DESC', | ), |
| 717 | 'granularity' => 'second', | 'priority' => array( |
| 718 | 'id' => 'last_comment_timestamp', | 'operator' => 'in', |
| 719 | 'table' => 'node_comment_statistics', | 'value' => array(), |
| 720 | 'field' => 'last_comment_timestamp', | 'group' => '0', |
| 721 | 'override' => array( | 'exposed' => TRUE, |
| 722 | 'button' => 'Use default', | 'expose' => array( |
| 723 | ), | 'use_operator' => 0, |
| 724 | 'relationship' => 'none', | 'operator' => 'priority_op', |
| 725 | ), | 'identifier' => 'priorities', |
| 726 | )); | 'label' => 'Priority', |
| 727 | $handler->override_option('style_plugin', 'rss'); | 'optional' => 1, |
| 728 | $handler->override_option('style_options', array( | 'single' => 1, |
| 729 | 'mission_description' => FALSE, | 'remember' => 0, |
| 730 | 'description' => '', | 'reduce' => 0, |
| 731 | )); | ), |
| 732 | $handler->override_option('row_plugin', 'node_rss'); | 'id' => 'priority', |
| 733 | $handler->override_option('path', 'project/issues/%/term/%/%/feed'); | 'table' => 'project_issues', |
| 734 | $handler->override_option('menu', array( | 'field' => 'priority', |
| 735 | 'type' => 'none', | 'relationship' => 'none', |
| 736 | 'title' => '', | ), |
| 737 | 'weight' => 0, | 'category' => array( |
| 738 | 'name' => '', | 'operator' => 'in', |
| 739 | )); | 'value' => array(), |
| 740 | $handler->override_option('tab_options', array( | 'group' => '0', |
| 741 | 'type' => 'none', | 'exposed' => TRUE, |
| 742 | 'title' => '', | 'expose' => array( |
| 743 | 'weight' => 0, | 'use_operator' => 0, |
| 744 | )); | 'operator' => 'category_op', |
| 745 | $handler->override_option('displays', array( | 'identifier' => 'categories', |
| 746 | 'page_1' => 'page_1', | 'label' => 'Category', |
| 747 | 'default' => 0, | 'optional' => 1, |
| 748 | )); | 'single' => 1, |
| 749 | $handler->override_option('sitename_title', FALSE); | 'remember' => 0, |
| 750 | 'reduce' => 0, | |
| 751 | $handler = $view->new_display('feed', 'Views 1 feed', 'feed_1'); | ), |
| 752 | $handler->override_option('items_per_page', 15); | 'id' => 'category', |
| 753 | $handler->override_option('use_pager', '1'); | 'table' => 'project_issues', |
| 754 | $handler->override_option('row_plugin', 'node_rss'); | 'field' => 'category', |
| 755 | $handler->override_option('row_options', array( | 'relationship' => 'none', |
| 756 | 'item_length' => 'default', | ), |
| 757 | )); | 'rid' => array( |
| 758 | $handler->override_option('path', 'project/issues/%/term/%/feed'); | 'operator' => 'in', |
| 759 | $handler->override_option('menu', array( | 'value' => array(), |
| 760 | 'type' => 'none', | 'group' => '0', |
| 761 | 'title' => '', | 'exposed' => TRUE, |
| 762 | 'weight' => 0, | 'expose' => array( |
| 763 | )); | 'use_operator' => 0, |
| 764 | $handler->override_option('tab_options', array( | 'operator' => 'rid_op', |
| 765 | 'type' => 'none', | 'identifier' => 'version', |
| 766 | 'title' => '', | 'label' => 'Version', |
| 767 | 'weight' => 0, | 'optional' => 1, |
| 768 | )); | 'single' => 1, |
| 769 | 'remember' => 0, | |
| 770 | $views[$view->name] = $view; | 'reduce' => 0, |
| 771 | ), | |
| 772 | 'id' => 'rid', | |
| 773 | 'table' => 'project_issues', | |
| 774 | 'field' => 'rid', | |
| 775 | 'relationship' => 'none', | |
| 776 | ), | |
| 777 | 'component' => array( | |
| 778 | 'operator' => 'in', | |
| 779 | 'value' => array(), | |
| 780 | 'group' => '0', | |
| 781 | 'exposed' => TRUE, | |
| 782 | 'expose' => array( | |
| 783 | 'use_operator' => 0, | |
| 784 | 'operator' => 'component_op', | |
| 785 | 'identifier' => 'component', | |
| 786 | 'label' => 'Component', | |
| 787 | 'optional' => 1, | |
| 788 | 'single' => 1, | |
| 789 | 'remember' => 0, | |
| 790 | 'reduce' => 0, | |
| 791 | ), | |
| 792 | 'id' => 'component', | |
| 793 | 'table' => 'project_issues', | |
| 794 | 'field' => 'component', | |
| 795 | 'relationship' => 'none', | |
| 796 | ), | |
| 797 | )); | |
| 798 | $handler->override_option('access', array( | |
| 799 | 'type' => 'none', | |
| 800 | )); | |
| 801 | $handler->override_option('title', 'Issues by project'); | |
| 802 | $handler->override_option('items_per_page', 50); | |
| 803 | $handler->override_option('use_pager', '1'); | |
| 804 | $handler->override_option('style_plugin', 'project_issue_table'); | |
| 805 | $handler->override_option('style_options', array( | |
| 806 | 'grouping' => '', | |
| 807 | 'override' => 1, | |
| 808 | 'sticky' => 0, | |
| 809 | 'order' => 'desc', | |
| 810 | 'columns' => array( | |
| 811 | 'title' => 'title', | |
| 812 | 'sid' => 'sid', | |
| 813 | 'priority' => 'priority', | |
| 814 | 'category' => 'category', | |
| 815 | 'version' => 'version', | |
| 816 | 'component' => 'component', | |
| 817 | 'comment_count' => 'comment_count', | |
| 818 | 'new_comments' => 'comment_count', | |
| < |