Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected relationship and default argument

  • Loading branch information...
commit 6166176586a3809bc601fc8caf6e9a61e7a9ac12 1 parent 0561bef
@FatherShawn FatherShawn authored
Showing with 42 additions and 5 deletions.
  1. +42 −5 sites/all/modules/custom/data_export/data_export.views_default.inc
View
47 sites/all/modules/custom/data_export/data_export.views_default.inc
@@ -107,12 +107,13 @@ function data_export_views_default_views() {
));
$handler->override_option('arguments', array(
'nid' => array(
- 'default_action' => 'ignore',
+ 'default_action' => 'default',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
+ 'breadcrumb' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'signup_status',
@@ -125,15 +126,51 @@ function data_export_views_default_views() {
'relationship' => 'nid',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
- 'default_argument_fixed' => '',
+ 'default_argument_fixed' => '44',
'default_argument_php' => '',
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(),
'validate_argument_type' => 'tid',
'validate_argument_signup_status' => 'any',
- 'validate_argument_signup_node_access' => 1,
+ 'validate_argument_signup_node_access' => 0,
'validate_argument_php' => '',
+ 'validate_user_argument_type' => 'uid',
+ 'validate_user_roles' => array(
+ 2 => 0,
+ 11 => 0,
+ 4 => 0,
+ 10 => 0,
+ 7 => 0,
+ 12 => 0,
+ 5 => 0,
+ 3 => 0,
+ 6 => 0,
+ 8 => 0,
+ ),
+ 'validate_argument_node_type' => array(
+ 'news' => 0,
+ 'page' => 0,
+ 'room' => 0,
+ 'schedule_item' => 0,
+ 'session' => 0,
+ 'time_slot' => 0,
+ 'product' => 0,
+ 'event' => 0,
+ 'sponsorship' => 0,
+ 'faq' => 0,
+ 'sponsor' => 0,
+ 'supporter' => 0,
+ 'webform' => 0,
+ ),
+ 'validate_argument_transform' => 0,
+ 'validate_user_restrict_roles' => 0,
+ 'validate_argument_node_flag_name' => '*relationship*',
+ 'validate_argument_node_flag_test' => 'flaggable',
+ 'validate_argument_node_flag_id_type' => 'id',
+ 'validate_argument_user_flag_name' => '*relationship*',
+ 'validate_argument_user_flag_test' => 'flaggable',
+ 'validate_argument_user_flag_id_type' => 'id',
),
));
$handler->override_option('filters', array(
@@ -364,7 +401,7 @@ function data_export_views_default_views() {
'id' => 'value_2',
'table' => 'profile_values_profile_diet',
'field' => 'value',
- 'relationship' => 'nid',
+ 'relationship' => 'uid',
'override' => array(
'button' => 'Use default',
),
@@ -398,7 +435,7 @@ function data_export_views_default_views() {
'id' => 'value_3',
'table' => 'profile_values_profile_shirt',
'field' => 'value',
- 'relationship' => 'nid',
+ 'relationship' => 'uid',
'override' => array(
'button' => 'Use default',
),
Please sign in to comment.
Something went wrong with that request. Please try again.