You are here

cache_actions_test_view_pane.php in Cache Actions 6.2

Same filename and directory in other branches
  1. 7 cache_actions_test/views/cache_actions_test_view_pane.php

File

cache_actions_test/views/cache_actions_test_view_pane.php
View source
<?php

/**
 * @file
 * This is a view pane that is used for testing purposes by the panels.
 */
$view = new view();
$view->name = 'cache_actions_test_view_pane';
$view->description = 'Cache Actions Test';
$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('access', array(
  'type' => 'none',
));
$handler
  ->override_option('cache', array(
  'type' => 'none',
));
$handler
  ->override_option('row_plugin', 'node');
$handler
  ->override_option('row_options', array(
  'relationship' => 'none',
  'build_mode' => 'teaser',
  'links' => 1,
  'comments' => 0,
));
$handler = $view
  ->new_display('panel_pane', 'Content pane', 'panel_pane_1');
$handler
  ->override_option('pane_title', '');
$handler
  ->override_option('pane_description', '');
$handler
  ->override_option('pane_category', array(
  'name' => 'View panes',
  'weight' => 0,
));
$handler
  ->override_option('allow', array(
  'use_pager' => FALSE,
  'items_per_page' => FALSE,
  'offset' => FALSE,
  'link_to_view' => FALSE,
  'more_link' => FALSE,
  'path_override' => FALSE,
  'title_override' => FALSE,
  'exposed_form' => FALSE,
  'fields_override' => FALSE,
));
$handler
  ->override_option('argument_input', array());
$handler
  ->override_option('link_to_view', 0);
$handler
  ->override_option('inherit_panels_path', 0);