You are here

views_fractionslider_example.views_default.inc in Views FractionSlider 7.2

File

views_fractionslider_example/views_fractionslider_example.views_default.inc
View source
<?php

/**
 * @file
 * views_fractionslider_example.views_default.inc
 */

/**
 * Implements hook_views_default_views().
 */
function views_fractionslider_example_views_default_views() {
  $export = array();
  $view = new view();
  $view->name = 'views_fractionslider';
  $view->description = '';
  $view->tag = 'default';
  $view->base_table = 'node';
  $view->human_name = 'Views FractionSlider';
  $view->core = 7;
  $view->api_version = '3.0';
  $view->disabled = FALSE;

  /* Edit this to true to make a default view disabled initially */

  /* Display: Master */
  $handler = $view
    ->new_display('default', 'Master', 'default');
  $handler->display->display_options['title'] = 'Views FractionSlider';
  $handler->display->display_options['use_more_always'] = FALSE;
  $handler->display->display_options['access']['type'] = 'perm';
  $handler->display->display_options['cache']['type'] = 'none';
  $handler->display->display_options['query']['type'] = 'views_query';
  $handler->display->display_options['exposed_form']['type'] = 'basic';
  $handler->display->display_options['pager']['type'] = 'some';
  $handler->display->display_options['pager']['options']['items_per_page'] = '3';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['style_plugin'] = 'views_fractionslider';
  $handler->display->display_options['row_plugin'] = 'fields';

  /* Field: Content: Title */
  $handler->display->display_options['fields']['title']['id'] = 'title';
  $handler->display->display_options['fields']['title']['table'] = 'node';
  $handler->display->display_options['fields']['title']['field'] = 'title';
  $handler->display->display_options['fields']['title']['label'] = '';
  $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;

  /* Field: Content: Body */
  $handler->display->display_options['fields']['field_vfs_body']['id'] = 'field_vfs_body';
  $handler->display->display_options['fields']['field_vfs_body']['table'] = 'field_data_field_vfs_body';
  $handler->display->display_options['fields']['field_vfs_body']['field'] = 'field_vfs_body';
  $handler->display->display_options['fields']['field_vfs_body']['label'] = '';
  $handler->display->display_options['fields']['field_vfs_body']['element_label_colon'] = FALSE;

  /* Field: Content: Image */
  $handler->display->display_options['fields']['field_vfs_image']['id'] = 'field_vfs_image';
  $handler->display->display_options['fields']['field_vfs_image']['table'] = 'field_data_field_vfs_image';
  $handler->display->display_options['fields']['field_vfs_image']['field'] = 'field_vfs_image';
  $handler->display->display_options['fields']['field_vfs_image']['label'] = '';
  $handler->display->display_options['fields']['field_vfs_image']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_vfs_image']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_vfs_image']['settings'] = array(
    'image_style' => '',
    'image_link' => '',
  );

  /* Sort criterion: Content: Post date */
  $handler->display->display_options['sorts']['created']['id'] = 'created';
  $handler->display->display_options['sorts']['created']['table'] = 'node';
  $handler->display->display_options['sorts']['created']['field'] = 'created';
  $handler->display->display_options['sorts']['created']['order'] = 'DESC';

  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status']['id'] = 'status';
  $handler->display->display_options['filters']['status']['table'] = 'node';
  $handler->display->display_options['filters']['status']['field'] = 'status';
  $handler->display->display_options['filters']['status']['value'] = 1;
  $handler->display->display_options['filters']['status']['group'] = 1;
  $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;

  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type']['id'] = 'type';
  $handler->display->display_options['filters']['type']['table'] = 'node';
  $handler->display->display_options['filters']['type']['field'] = 'type';
  $handler->display->display_options['filters']['type']['value'] = array(
    'views_fractionslider' => 'views_fractionslider',
  );

  /* Display: Block */
  $handler = $view
    ->new_display('block', 'Block', 'block');
  $handler->display->display_options['defaults']['fields'] = FALSE;

  /* Field: Content: Title */
  $handler->display->display_options['fields']['title']['id'] = 'title';
  $handler->display->display_options['fields']['title']['table'] = 'node';
  $handler->display->display_options['fields']['title']['field'] = 'title';
  $handler->display->display_options['fields']['title']['label'] = '';
  $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;

  /* Field: Content: Body */
  $handler->display->display_options['fields']['field_vfs_body']['id'] = 'field_vfs_body';
  $handler->display->display_options['fields']['field_vfs_body']['table'] = 'field_data_field_vfs_body';
  $handler->display->display_options['fields']['field_vfs_body']['field'] = 'field_vfs_body';
  $handler->display->display_options['fields']['field_vfs_body']['label'] = '';
  $handler->display->display_options['fields']['field_vfs_body']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_vfs_body']['type'] = 'text_trimmed';
  $handler->display->display_options['fields']['field_vfs_body']['settings'] = array(
    'trim_length' => '300',
  );

  /* Field: Content: Image */
  $handler->display->display_options['fields']['field_vfs_image']['id'] = 'field_vfs_image';
  $handler->display->display_options['fields']['field_vfs_image']['table'] = 'field_data_field_vfs_image';
  $handler->display->display_options['fields']['field_vfs_image']['field'] = 'field_vfs_image';
  $handler->display->display_options['fields']['field_vfs_image']['label'] = '';
  $handler->display->display_options['fields']['field_vfs_image']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_vfs_image']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_vfs_image']['settings'] = array(
    'image_style' => '',
    'image_link' => '',
  );
  $export['views_fractionslider'] = $view;
  return $export;
}