$view = new stdClass(); $view->name = 'issue_tags'; $view->description = 'Lists project issues by "Issue tag" term'; $view->access = array ( 0 => '2', ); $view->page = TRUE; $view->page_title = ''; $view->page_header = ''; $view->page_header_format = '1'; $view->page_footer = ''; $view->page_footer_format = '1'; $view->page_empty = 'There were no issues found.'; $view->page_empty_format = '1'; $view->page_type = 'table'; $view->url = 'issues/tags/$arg'; $view->use_pager = TRUE; $view->nodes_per_page = '25'; $view->sort = array ( array ( 'tablename' => 'node', 'field' => 'changed', 'sortorder' => 'DESC', 'options' => 'normal', ), ); $view->argument = array ( array ( 'type' => 'taxletter', 'argdefault' => '2', 'title' => 'Issues tagged with %1', 'options' => '', 'wildcard' => '', 'wildcard_substitution' => '', ), ); $view->field = array ( array ( 'tablename' => 'project_issue_project_node', 'field' => 'title', 'label' => 'Project', 'handler' => 'views_handler_field_project_issue_project_nodelink', 'options' => 'link', ), array ( 'tablename' => 'node', 'field' => 'title', 'label' => 'Summary', 'handler' => 'views_handler_field_nodelink_with_mark', 'sortable' => '1', 'options' => 'link', ), array ( 'tablename' => 'project_issues', 'field' => 'sid', 'label' => 'Status', 'sortable' => '1', ), array ( 'tablename' => 'node', 'field' => 'changed', 'label' => 'Last updated', 'handler' => 'views_handler_field_since', 'sortable' => '1', 'defaultsort' => 'DESC', ), array ( 'tablename' => 'users', 'field' => 'name', 'label' => 'Assigned to', 'sortable' => '1', ), ); $view->filter = array ( array ( 'tablename' => 'node', 'field' => 'type', 'operator' => 'OR', 'options' => '', 'value' => array ( 0 => 'project_issue', ), ), array ( 'tablename' => 'node', 'field' => 'status', 'operator' => '=', 'options' => '', 'value' => '1', ), array ( 'tablename' => 'project_issues', 'field' => 'sid', 'operator' => '=', 'options' => '', 'value' => '1', ), ); $view->exposed_filter = array ( array ( 'tablename' => 'project_issues', 'field' => 'sid', 'label' => 'Status', 'optional' => '0', 'is_default' => '0', 'operator' => '1', 'single' => '0', ), ); $view->requires = array(node, project_issue_project_node, project_issues, users); $views[$view->name] = $view;