$view = new view; $view->name = 'Issues'; $view->description = ''; $view->tag = ''; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'title' => array( 'label' => 'Summary', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'field_status_nid' => array( 'label' => 'Status', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'plain', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_status_nid', 'table' => 'node_data_field_status', 'field' => 'field_status_nid', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'field_priority_nid' => array( 'label' => 'Priority', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'plain', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_priority_nid', 'table' => 'node_data_field_priority', 'field' => 'field_priority_nid', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'tid' => array( 'label' => 'Service', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'type' => 'separator', 'separator' => ', ', 'empty' => '', 'link_to_taxonomy' => 1, 'limit' => 1, 'vids' => array( '5' => 5, '7' => 0, ), 'exclude' => 0, 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'relationship' => 'none', ), 'field_estimated_completion_value' => array( 'label' => 'Estimated completion time', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_estimated_completion_value', 'table' => 'node_data_field_estimated_completion', 'field' => 'field_estimated_completion_value', 'relationship' => 'none', ), 'field_owner_uid' => array( 'label' => 'Assigned to', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_owner_uid', 'table' => 'node_data_field_owner', 'field' => 'field_owner_uid', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'field_status_nid' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Issues excluding status %1', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'node', 'validate_fail' => 'not found', 'break_phrase' => 1, 'not' => 1, 'id' => 'field_status_nid', 'table' => 'node_data_field_status', 'field' => 'field_status_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'metadata' => 'metadata', 'issue' => 0, 'page' => 0, 'person' => 0, 'story' => 0, 'time_track' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '7' => 0, '8' => 0, '5' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => '', 'label' => 'Published', 'use_operator' => FALSE, 'identifier' => 'status', 'remember' => FALSE, 'single' => TRUE, 'optional' => FALSE, ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'issue' => 'issue', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'field_status_nid' => array( 'operator' => 'or', 'value' => array( '24' => '24', '28' => '28', '25' => '25', '29' => '29', '26' => '26', ), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'field_status_nid_op', 'identifier' => 'field_status_nid', 'label' => 'Status', 'optional' => 1, 'single' => 0, 'remember' => 0, 'reduce' => 0, ), 'id' => 'field_status_nid', 'table' => 'node_data_field_status', 'field' => 'field_status_nid', 'relationship' => 'none', 'reduce_duplicates' => 0, 'override' => array( 'button' => 'Override', ), ), 'field_priority_nid' => array( 'operator' => 'or', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'field_priority_nid_op', 'identifier' => 'field_priority_nid', 'label' => 'Priority', 'optional' => 1, 'single' => 1, 'remember' => 0, 'reduce' => 0, ), 'id' => 'field_priority_nid', 'table' => 'node_data_field_priority', 'field' => 'field_priority_nid', 'relationship' => 'none', 'reduce_duplicates' => 0, ), 'tid' => array( 'operator' => 'or', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'tid_op', 'identifier' => 'tid', 'label' => 'Service', 'optional' => 1, 'single' => 1, 'remember' => 0, 'reduce' => 0, ), 'type' => 'select', 'limit' => TRUE, 'vid' => '5', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'hierarchy' => 1, 'relationship' => 'none', 'reduce_duplicates' => 0, ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('items_per_page', 0); $handler->override_option('style_plugin', 'views_calc'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'title' => 'title', 'field_status_nid' => 'field_status_nid', 'field_priority_nid' => 'field_priority_nid', 'tid' => 'tid', 'field_estimated_completion_value' => 'field_estimated_completion_value', 'field_owner_uid' => 'field_owner_uid', ), 'info' => array( 'title' => array( 'sortable' => 1, 'separator' => '', 'justification' => 'views_calc_justify_none', 'has_calc' => 1, 'calc' => array( 'COUNT' => 'COUNT', ), ), 'field_status_nid' => array( 'separator' => '', 'justification' => 'views_calc_justify_none', 'has_calc' => 0, 'calc' => array(), ), 'field_priority_nid' => array( 'separator' => '', 'justification' => 'views_calc_justify_none', 'has_calc' => 0, 'calc' => array(), ), 'tid' => array( 'separator' => '', 'justification' => 'views_calc_justify_none', 'has_calc' => 0, 'calc' => array(), ), 'field_estimated_completion_value' => array( 'sortable' => 1, 'separator' => '', 'justification' => 'views_calc_justify_none', 'has_calc' => 1, 'calc' => array( 'SUM' => 'SUM', ), ), 'field_owner_uid' => array( 'separator' => '', 'justification' => 'views_calc_justify_none', 'has_calc' => 0, 'calc' => array(), ), ), 'default' => '-1', 'detailed_values' => '0', )); $handler = $view->new_display('page', 'Normal page view', 'page_1'); $handler->override_option('path', 'issues'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, ));