Fix for view

  1. $view = new view;
  2. $view->name = 'portifolio';
  3. $view->description = '';
  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('fields', array(
  12.   'field_img_fid' => array(
  13.     'label' => '',
  14.     'alter' => array(
  15.       'alter_text' => 0,
  16.       'text' => '',
  17.       'make_link' => 0,
  18.       'path' => '',
  19.       'link_class' => '',
  20.       'alt' => '',
  21.       'prefix' => '',
  22.       'suffix' => '',
  23.       'help' => '',
  24.       'trim' => 0,
  25.       'max_length' => '',
  26.       'word_boundary' => 1,
  27.       'ellipsis' => 1,
  28.       'strip_tags' => 0,
  29.       'html' => 0,
  30.     ),
  31.     'link_to_node' => 0,
  32.     'label_type' => 'custom',
  33.     'format' => 'imagefield__lightbox2__portifolio__original',
  34.     'multiple' => array(
  35.       'group' => TRUE,
  36.       'multiple_number' => '',
  37.       'multiple_from' => '',
  38.       'multiple_reversed' => FALSE,
  39.     ),
  40.     'exclude' => 1,
  41.     'id' => 'field_img_fid',
  42.     'table' => 'node_data_field_img',
  43.     'field' => 'field_img_fid',
  44.     'relationship' => 'none',
  45.   ),
  46.   'body' => array(
  47.     'label' => '',
  48.     'alter' => array(
  49.       'alter_text' => 0,
  50.       'text' => '',
  51.       'make_link' => 0,
  52.       'path' => '',
  53.       'link_class' => '',
  54.       'alt' => '',
  55.       'prefix' => '',
  56.       'suffix' => '',
  57.       'help' => '',
  58.       'trim' => 0,
  59.       'max_length' => '',
  60.       'word_boundary' => 1,
  61.       'ellipsis' => 1,
  62.       'strip_tags' => 0,
  63.       'html' => 0,
  64.     ),
  65.     'exclude' => 1,
  66.     'id' => 'body',
  67.     'table' => 'node_revisions',
  68.     'field' => 'body',
  69.     'relationship' => 'none',
  70.   ),
  71.   'nothing' => array(
  72.     'label' => '',
  73.     'alter' => array(
  74.       'text' => '<div id="div1">[field_img_fid]</div><div id="div2">[body]</div>
  75. ',
  76.       'make_link' => 0,
  77.       'path' => '',
  78.       'link_class' => '',
  79.       'alt' => '',
  80.       'prefix' => '',
  81.       'suffix' => '',
  82.       'help' => '',
  83.       'trim' => 0,
  84.       'max_length' => '',
  85.       'word_boundary' => 1,
  86.       'ellipsis' => 1,
  87.       'strip_tags' => 0,
  88.       'html' => 0,
  89.     ),
  90.     'exclude' => 0,
  91.     'id' => 'nothing',
  92.     'table' => 'views',
  93.     'field' => 'nothing',
  94.     'relationship' => 'none',
  95.   ),
  96. ));
  97. $handler->override_option('filters', array(
  98.   'type' => array(
  99.     'operator' => 'in',
  100.     'value' => array(
  101.       'portifolio' => 'portifolio',
  102.     ),
  103.     'group' => '0',
  104.     'exposed' => FALSE,
  105.     'expose' => array(
  106.       'operator' => FALSE,
  107.       'label' => '',
  108.     ),
  109.     'id' => 'type',
  110.     'table' => 'node',
  111.     'field' => 'type',
  112.     'relationship' => 'none',
  113.   ),
  114. ));
  115. $handler->override_option('access', array(
  116.   'type' => 'none',
  117. ));
  118. $handler->override_option('cache', array(
  119.   'type' => 'none',
  120. ));
  121. $handler->override_option('style_plugin', 'grid');
  122. $handler->override_option('style_options', array(
  123.   'grouping' => '',
  124.   'columns' => '2',
  125.   'alignment' => 'horizontal',
  126. ));

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.