Fix for im trying to add this view to views. its provided by cooolzine theme from themeforest. but i cant import. keep getting error.

  1. $view = new view;
  2. $view->name = 'front_tops';
  3. $view->description = 'Frontpage view';
  4. $view->tag = 'default';
  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('sorts', array(
  12.   'created' => array(
  13.     'order' => 'DESC',
  14.     'granularity' => 'hour',
  15.     'id' => 'created',
  16.     'table' => 'node',
  17.     'field' => 'created',
  18.     'relationship' => 'none',
  19.   ),
  20.   'field_appearence_value' => array(
  21.     'order' => 'ASC',
  22.     'delta' => -1,
  23.     'id' => 'field_appearence_value',
  24.     'table' => 'node_data_field_appearence',
  25.     'field' => 'field_appearence_value',
  26.     'relationship' => 'none',
  27.   ),
  28. ));
  29. $handler->override_option('filters', array(
  30.   'status_extra' => array(
  31.     'id' => 'status_extra',
  32.     'table' => 'node',
  33.     'field' => 'status_extra',
  34.     'operator' => '=',
  35.     'value' => '',
  36.     'group' => 0,
  37.     'exposed' => FALSE,
  38.     'expose' => array(
  39.       'operator' => FALSE,
  40.       'label' => '',
  41.     ),
  42.     'relationship' => 'none',
  43.   ),
  44.   'type' => array(
  45.     'operator' => 'in',
  46.     'value' => array(
  47.       'blog' => 'blog',
  48.     ),
  49.     'group' => '0',
  50.     'exposed' => FALSE,
  51.     'expose' => array(
  52.       'operator' => FALSE,
  53.       'label' => '',
  54.     ),
  55.     'id' => 'type',
  56.     'table' => 'node',
  57.     'field' => 'type',
  58.     'relationship' => 'none',
  59.   ),
  60. ));
  61. $handler->override_option('access', array(
  62.   'type' => 'none',
  63.   'role' => array(),
  64.   'perm' => '',
  65. ));
  66. $handler->override_option('cache', array(
  67.   'type' => 'none',
  68. ));
  69. $handler->override_option('use_pager', '1');
  70. $handler->override_option('row_plugin', 'node');
  71. $handler->override_option('row_options', array(
  72.   'teaser' => TRUE,
  73.   'links' => TRUE,
  74. ));

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.