Permalink
Browse files

added default argument

  • Loading branch information...
1 parent 8bd1497 commit daf52608f6dabacb1ec0613151dfa49c23e2d95e @FatherShawn FatherShawn committed Dec 2, 2011
Showing with 71 additions and 0 deletions.
  1. +71 −0 sites/all/modules/custom/data_export/data_export.views_default.inc
View
71 sites/all/modules/custom/data_export/data_export.views_default.inc
@@ -165,6 +165,77 @@ function data_export_views_default_views() {
$handler->override_option('items_per_page', 0);
$handler->override_option('use_pager', 0);
$handler = $view->new_display('views_data_export', 'Data export', 'views_data_export_1');
+ $handler->override_option('arguments', array(
+ 'nid' => array(
+ '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',
+ 'validate_fail' => 'not found',
+ 'break_phrase' => 0,
+ 'not' => 0,
+ 'id' => 'nid',
+ 'table' => 'node',
+ 'field' => 'nid',
+ 'relationship' => 'nid',
+ 'default_options_div_prefix' => '',
+ 'default_argument_user' => 0,
+ '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' => 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,
+ ),
+ 'override' => array(
+ 'button' => 'Use default',
+ ),
+ '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('items_per_page', '0');
$handler->override_option('style_plugin', 'views_data_export_csv');
$handler->override_option('style_options', array(

0 comments on commit daf5260

Please sign in to comment.