Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $view = new view;
- $view->name = 'master';
- $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('relationships', array(
- 'content_profile_rel' => array(
- 'id' => 'content_profile_rel',
- 'table' => 'users',
- 'field' => 'content_profile_rel',
- ),
- 'vid' => array(
- 'id' => 'vid',
- 'table' => 'term_node',
- 'field' => 'vid',
- ),
- ));
- $handler->override_option('fields', array(
- 'field_country_value' => array(
- 'label' => 'Country',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 1,
- 'empty_zero' => 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_country_value',
- 'table' => 'node_data_field_country',
- 'field' => 'field_country_value',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'field_eventdate_value' => array(
- 'label' => 'EventDate',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'link_to_node' => 0,
- 'label_type' => 'widget',
- 'format' => 'default',
- 'multiple' => array(
- 'multiple_number' => '',
- 'multiple_from' => '',
- 'multiple_to' => '',
- 'group' => TRUE,
- ),
- 'repeat' => array(
- 'show_repeat_rule' => '',
- ),
- 'fromto' => array(
- 'fromto' => 'both',
- ),
- 'exclude' => 0,
- 'id' => 'field_eventdate_value',
- 'table' => 'node_data_field_eventdate',
- 'field' => 'field_eventdate_value',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- 'title' => array(
- 'label' => 'Name(Desc)',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 1,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'link_to_node' => 0,
- 'exclude' => 0,
- 'id' => 'title',
- 'table' => 'node',
- 'field' => 'title',
- 'relationship' => 'none',
- ),
- 'field_internationalcode_value' => array(
- 'label' => 'Coin',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 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_internationalcode_value',
- 'table' => 'node_data_field_internationalcode',
- 'field' => 'field_internationalcode_value',
- 'relationship' => 'none',
- ),
- 'field_volatility_value' => array(
- 'label' => 'Importance',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 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_volatility_value',
- 'table' => 'node_data_field_volatility',
- 'field' => 'field_volatility_value',
- 'relationship' => 'none',
- ),
- 'field_htmldescription_value' => array(
- 'label' => 'HTMLDescription',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 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_htmldescription_value',
- 'table' => 'node_data_field_htmldescription',
- 'field' => 'field_htmldescription_value',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('sorts', array(
- 'field_internationalcode_value' => array(
- 'order' => 'ASC',
- 'delta' => -1,
- 'id' => 'field_internationalcode_value',
- 'table' => 'node_data_field_internationalcode',
- 'field' => 'field_internationalcode_value',
- 'relationship' => 'content_profile_rel',
- 'override' => array(
- 'button' => 'Override',
- ),
- ),
- 'field_volatility_value' => array(
- 'order' => 'ASC',
- 'delta' => -1,
- 'id' => 'field_volatility_value',
- 'table' => 'node_data_field_volatility',
- 'field' => 'field_volatility_value',
- 'relationship' => 'vid',
- 'override' => array(
- 'button' => 'Override',
- ),
- ),
- ));
- $handler->override_option('arguments', array(
- 'field_internationalcode_value' => array(
- 'default_action' => 'ignore',
- 'style_plugin' => 'default_summary',
- 'style_options' => array(),
- 'wildcard' => 'all',
- 'wildcard_substitution' => 'All',
- 'title' => '',
- 'breadcrumb' => '',
- 'default_argument_type' => 'fixed',
- 'default_argument' => '',
- 'validate_type' => 'none',
- 'validate_fail' => 'not found',
- 'glossary' => 0,
- 'limit' => '0',
- 'case' => 'none',
- 'path_case' => 'none',
- 'transform_dash' => 0,
- 'id' => 'field_internationalcode_value',
- 'table' => 'node_data_field_internationalcode',
- 'field' => 'field_internationalcode_value',
- 'validate_user_argument_type' => 'uid',
- 'validate_user_roles' => array(
- '2' => 0,
- '4' => 0,
- '5' => 0,
- '3' => 0,
- ),
- 'relationship' => 'none',
- 'default_options_div_prefix' => '',
- 'default_argument_fixed' => '',
- 'default_argument_user' => 0,
- 'default_argument_php' => '',
- 'validate_argument_node_type' => array(
- 'webform' => 0,
- 'data' => 0,
- 'event' => 0,
- 'feed' => 0,
- 'feed_item' => 0,
- 'page' => 0,
- 'profile' => 0,
- 'story' => 0,
- ),
- 'validate_argument_node_access' => 0,
- 'validate_argument_nid_type' => 'nid',
- 'validate_argument_vocabulary' => array(
- '1' => 0,
- ),
- 'validate_argument_type' => 'tid',
- 'validate_argument_transform' => 0,
- 'validate_user_restrict_roles' => 0,
- 'validate_argument_php' => '<?php
- if ($args[0]) {
- $view->filter[0][\'value\'] = $args[0]; // set the value of filter[0]
- }
- if ($args[1]) {
- $view->filter[1][\'value\'] = $args[1]; // set the value of filter[1]
- }
- $view->is_cacheable = 0;
- ?>',
- ),
- 'field_volatility_value' => array(
- 'default_action' => 'ignore',
- 'style_plugin' => 'default_summary',
- 'style_options' => array(),
- 'wildcard' => 'all',
- 'wildcard_substitution' => 'All',
- 'title' => '',
- 'breadcrumb' => '',
- 'default_argument_type' => 'fixed',
- 'default_argument' => '',
- 'validate_type' => 'none',
- 'validate_fail' => 'not found',
- 'break_phrase' => 1,
- 'add_table' => 1,
- 'require_value' => 1,
- 'reduce_duplicates' => 1,
- 'id' => 'field_volatility_value',
- 'table' => 'node_data_field_volatility',
- 'field' => 'field_volatility_value',
- 'validate_user_argument_type' => 'uid',
- 'validate_user_roles' => array(
- '2' => 0,
- '4' => 0,
- '5' => 0,
- '3' => 0,
- ),
- 'relationship' => 'none',
- 'default_options_div_prefix' => '',
- 'default_argument_fixed' => '',
- 'default_argument_user' => 0,
- 'default_argument_php' => '',
- 'validate_argument_node_type' => array(
- 'webform' => 0,
- 'data' => 0,
- 'event' => 0,
- 'feed' => 0,
- 'feed_item' => 0,
- 'page' => 0,
- 'profile' => 0,
- 'story' => 0,
- ),
- 'validate_argument_node_access' => 0,
- 'validate_argument_nid_type' => 'nid',
- 'validate_argument_vocabulary' => array(
- '1' => 0,
- ),
- 'validate_argument_type' => 'tid',
- 'validate_argument_transform' => 0,
- 'validate_user_restrict_roles' => 0,
- 'validate_argument_php' => '',
- ),
- ));
- $handler->override_option('filters', array(
- 'type' => array(
- 'operator' => 'in',
- 'value' => array(
- 'event' => 'event',
- ),
- 'group' => '0',
- 'exposed' => FALSE,
- 'expose' => array(
- 'operator' => FALSE,
- 'label' => '',
- ),
- 'id' => 'type',
- 'table' => 'node',
- 'field' => 'type',
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'none',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler->override_option('title', 'Forex Calender');
- $handler->override_option('use_pager', '1');
- $handler->override_option('pager_element', 1);
- $handler->override_option('style_plugin', 'table');
- $handler->override_option('style_options', array(
- 'grouping' => '',
- 'override' => 1,
- 'sticky' => 0,
- 'order' => 'asc',
- 'columns' => array(
- 'field_country_value' => 'field_country_value',
- 'field_eventdate_value' => 'field_eventdate_value',
- 'title' => 'title',
- 'field_internationalcode_value' => 'field_internationalcode_value',
- 'field_volatility_value' => 'field_volatility_value',
- ),
- 'info' => array(
- 'field_country_value' => array(
- 'sortable' => 0,
- 'separator' => '',
- ),
- 'field_eventdate_value' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'title' => array(
- 'sortable' => 0,
- 'separator' => '',
- ),
- 'field_internationalcode_value' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'field_volatility_value' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- ),
- 'default' => '-1',
- ));
- $handler->override_option('row_plugin', 'node');
- $handler = $view->new_display('page', 'Page', 'page_1');
- $handler->override_option('path', 'master');
- $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,
- 'name' => 'navigation',
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement