Commit 84b25908 authored by crawleyhost's avatar crawleyhost Committed by drumm
Browse files

Issue #3295544 by crawleyhost: Add 'date range' filter to org pages

parent df000a82
......@@ -166,7 +166,7 @@ function drupalorg_user_field_default_field_bases() {
// Exported field_base: 'field_country'.
$field_bases['field_country'] = array(
'active' => 1,
'cardinality' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_country',
......
......@@ -2,7 +2,7 @@ name = Drupal.org user customizations
description = Extra user fields
core = 7.x
package = Features
version = 7.x-3.x-dev
version = 7.x-3.0
project = drupalorg
dependencies[] = ctools
dependencies[] = date
......
......@@ -1378,6 +1378,10 @@ function drupalorg_user_views_default_views() {
$handler->display->display_options['header']['area']['content'] = '◀︎ <a href="!url-1">Back to %1</a>';
$handler->display->display_options['header']['area']['format'] = '1';
$handler->display->display_options['header']['area']['tokenize'] = TRUE;
/* Header: Global: Result summary */
$handler->display->display_options['header']['result']['id'] = 'result';
$handler->display->display_options['header']['result']['table'] = 'views';
$handler->display->display_options['header']['result']['field'] = 'result';
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
......@@ -1509,6 +1513,60 @@ function drupalorg_user_views_default_views() {
$handler->display->display_options['filters']['field_for_customer_target_id']['relationship'] = 'field_issue_credit_target_id';
$handler->display->display_options['filters']['field_for_customer_target_id']['value']['value'] = '***CURRENT_ORGANIZATION***';
$handler->display->display_options['filters']['field_for_customer_target_id']['group'] = 2;
/* Filter criterion: Content: Last status change (field_issue_last_status_change) */
$handler->display->display_options['filters']['field_issue_last_status_change_value']['id'] = 'field_issue_last_status_change_value';
$handler->display->display_options['filters']['field_issue_last_status_change_value']['table'] = 'field_data_field_issue_last_status_change';
$handler->display->display_options['filters']['field_issue_last_status_change_value']['field'] = 'field_issue_last_status_change_value';
$handler->display->display_options['filters']['field_issue_last_status_change_value']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_issue_last_status_change_value']['expose']['operator_id'] = 'field_issue_last_status_change_value_op';
$handler->display->display_options['filters']['field_issue_last_status_change_value']['expose']['label'] = 'Last status change (field_issue_last_status_change)';
$handler->display->display_options['filters']['field_issue_last_status_change_value']['expose']['operator'] = 'field_issue_last_status_change_value_op';
$handler->display->display_options['filters']['field_issue_last_status_change_value']['expose']['identifier'] = 'field_issue_last_status_change_value';
$handler->display->display_options['filters']['field_issue_last_status_change_value']['is_grouped'] = TRUE;
$handler->display->display_options['filters']['field_issue_last_status_change_value']['group_info']['label'] = 'Date range';
$handler->display->display_options['filters']['field_issue_last_status_change_value']['group_info']['identifier'] = 'field_issue_last_status_change_value';
$handler->display->display_options['filters']['field_issue_last_status_change_value']['group_info']['group_items'] = array(
1 => array(
'title' => 'Past 12 months',
'operator' => '>=',
'value' => array(
'type' => 'date',
'value' => '-1 year',
'min' => '',
'max' => '',
),
),
2 => array(
'title' => 'Past 90 days',
'operator' => '>=',
'value' => array(
'type' => 'date',
'value' => '-90 days',
'min' => '',
'max' => '',
),
),
3 => array(
'title' => 'Past 60 days',
'operator' => '>=',
'value' => array(
'type' => 'date',
'value' => '-60 days',
'min' => '',
'max' => '',
),
),
4 => array(
'title' => 'Past 30 days',
'operator' => '>=',
'value' => array(
'type' => 'date',
'value' => '-30 days',
'min' => '',
'max' => '',
),
),
);
$handler->display->display_options['path'] = 'node/%/issue-credits';
/* Display: Organization Sec Adv recent */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment