Fix for manufacturer to vechile view

  1. $view = new view;
  2. $view->name = 'listcars';
  3. $view->description = 'attachments of a list of cars for the manufacturers pages';
  4. $view->tag = '';
  5. $view->view_php = '';
  6. $view->base_table = 'node';
  7. $view->is_cacheable = FALSE;
  8. $view->api_version = 2;
  9. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  10. $handler = $view->new_display('default', 'Defaults', 'default');
  11. $handler->override_option('relationships', array(
  12.   'field_vehicle_manufacturer_nid' => array(
  13.     'label' => 'Manufacturer',
  14.     'required' => 1,
  15.     'delta' => -1,
  16.     'id' => 'field_vehicle_manufacturer_nid',
  17.     'table' => 'node_data_field_vehicle_manufacturer',
  18.     'field' => 'field_vehicle_manufacturer_nid',
  19.     'relationship' => 'none',
  20.   ),
  21. ));
  22. $handler->override_option('fields', array(
  23.   'field_vehicle_image_fid' => array(
  24.     'label' => 'Image',
  25.     'alter' => array(
  26.       'alter_text' => 0,
  27.       'text' => '',
  28.       'make_link' => 0,
  29.       'path' => '',
  30.       'link_class' => '',
  31.       'alt' => '',
  32.       'prefix' => '',
  33.       'suffix' => '',
  34.       'target' => '',
  35.       'help' => '',
  36.       'trim' => 0,
  37.       'max_length' => '',
  38.       'word_boundary' => 1,
  39.       'ellipsis' => 1,
  40.       'html' => 0,
  41.       'strip_tags' => 0,
  42.     ),
  43.     'empty' => '',
  44.     'hide_empty' => 0,
  45.     'empty_zero' => 0,
  46.     'link_to_node' => 0,
  47.     'label_type' => 'widget',
  48.     'format' => 'product_list_linked',
  49.     'multiple' => array(
  50.       'group' => 1,
  51.       'multiple_number' => '',
  52.       'multiple_from' => '',
  53.       'multiple_reversed' => 0,
  54.     ),
  55.     'exclude' => 0,
  56.     'id' => 'field_vehicle_image_fid',
  57.     'table' => 'node_data_field_vehicle_image',
  58.     'field' => 'field_vehicle_image_fid',
  59.     'relationship' => 'none',
  60.   ),
  61.   'field_vehicle_manufacturer_nid' => array(
  62.     'label' => 'Manufacturer',
  63.     'alter' => array(
  64.       'alter_text' => 0,
  65.       'text' => '',
  66.       'make_link' => 0,
  67.       'path' => '',
  68.       'link_class' => '',
  69.       'alt' => '',
  70.       'prefix' => '',
  71.       'suffix' => '',
  72.       'target' => '',
  73.       'help' => '',
  74.       'trim' => 0,
  75.       'max_length' => '',
  76.       'word_boundary' => 1,
  77.       'ellipsis' => 1,
  78.       'html' => 0,
  79.       'strip_tags' => 0,
  80.     ),
  81.     'empty' => '',
  82.     'hide_empty' => 0,
  83.     'empty_zero' => 0,
  84.     'link_to_node' => 0,
  85.     'label_type' => 'widget',
  86.     'format' => 'default',
  87.     'multiple' => array(
  88.       'group' => TRUE,
  89.       'multiple_number' => '',
  90.       'multiple_from' => '',
  91.       'multiple_reversed' => FALSE,
  92.     ),
  93.     'exclude' => 0,
  94.     'id' => 'field_vehicle_manufacturer_nid',
  95.     'table' => 'node_data_field_vehicle_manufacturer',
  96.     'field' => 'field_vehicle_manufacturer_nid',
  97.     'relationship' => 'none',
  98.   ),
  99. ));
  100. $handler->override_option('arguments', array(
  101.   'title' => array(
  102.     'default_action' => 'ignore',
  103.     'style_plugin' => 'default_summary',
  104.     'style_options' => array(),
  105.     'wildcard' => 'all',
  106.     'wildcard_substitution' => 'All',
  107.     'title' => '',
  108.     'breadcrumb' => '',
  109.     'default_argument_type' => 'fixed',
  110.     'default_argument' => '',
  111.     'validate_type' => 'none',
  112.     'validate_fail' => 'not found',
  113.     'glossary' => 0,
  114.     'limit' => '0',
  115.     'case' => 'none',
  116.     'path_case' => 'none',
  117.     'transform_dash' => 0,
  118.     'id' => 'title',
  119.     'table' => 'node',
  120.     'field' => 'title',
  121.     'validate_user_argument_type' => 'uid',
  122.     'validate_user_roles' => array(
  123.       '2' => 0,
  124.       '3' => 0,
  125.       '4' => 0,
  126.       '5' => 0,
  127.       '6' => 0,
  128.       '7' => 0,
  129.     ),
  130.     'relationship' => 'field_vehicle_manufacturer_nid',
  131.     'default_options_div_prefix' => '',
  132.     'default_argument_fixed' => '',
  133.     'default_argument_user' => 0,
  134.     'default_argument_php' => '',
  135.     'validate_argument_node_type' => array(
  136.       'dealership_info' => 0,
  137.       'manufacturer' => 0,
  138.       'page' => 0,
  139.       'profile' => 0,
  140.       'story' => 0,
  141.       'vehicle' => 0,
  142.     ),
  143.     'validate_argument_node_access' => 0,
  144.     'validate_argument_nid_type' => 'nid',
  145.     'validate_argument_vocabulary' => array(
  146.       '1' => 0,
  147.     ),
  148.     'validate_argument_type' => 'tid',
  149.     'validate_argument_transform' => 0,
  150.     'validate_user_restrict_roles' => 0,
  151.     'validate_argument_php' => '',
  152.   ),
  153. ));
  154. $handler->override_option('filters', array(
  155.   'type' => array(
  156.     'operator' => 'in',
  157.     'value' => array(
  158.       'vehicle' => 'vehicle',
  159.     ),
  160.     'group' => '0',
  161.     'exposed' => FALSE,
  162.     'expose' => array(
  163.       'operator' => FALSE,
  164.       'label' => '',
  165.     ),
  166.     'id' => 'type',
  167.     'table' => 'node',
  168.     'field' => 'type',
  169.     'relationship' => 'none',
  170.   ),
  171. ));
  172. $handler->override_option('access', array(
  173.   'type' => 'none',
  174. ));
  175. $handler->override_option('cache', array(
  176.   'type' => 'none',
  177. ));

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.