<?php
/**
 * @file
 * policia_features.views_default.inc
 */

/**
 * Implements hook_views_default_views().
 */
function policia_features_views_default_views() {
  $export = array();

  $view = new view();
  $view->name = 'noticias_unidades';
  $view->description = '';
  $view->tag = 'default';
  $view->base_table = 'node';
  $view->human_name = 'Noticias unidades';
  $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'] = 'Actividades';
  $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'] = '4';
  $handler->display->display_options['style_plugin'] = 'default';
  $handler->display->display_options['row_plugin'] = 'fields';
  /* Relationship: Entity Reference: Referenced Entity */
  $handler->display->display_options['relationships']['field_unidad_target_id']['id'] = 'field_unidad_target_id';
  $handler->display->display_options['relationships']['field_unidad_target_id']['table'] = 'field_data_field_unidad';
  $handler->display->display_options['relationships']['field_unidad_target_id']['field'] = 'field_unidad_target_id';
  $handler->display->display_options['relationships']['field_unidad_target_id']['required'] = TRUE;
  /* Field: Content: Imagen noticia */
  $handler->display->display_options['fields']['field_imagen_noticia']['id'] = 'field_imagen_noticia';
  $handler->display->display_options['fields']['field_imagen_noticia']['table'] = 'field_data_field_imagen_noticia';
  $handler->display->display_options['fields']['field_imagen_noticia']['field'] = 'field_imagen_noticia';
  $handler->display->display_options['fields']['field_imagen_noticia']['label'] = '';
  $handler->display->display_options['fields']['field_imagen_noticia']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_imagen_noticia']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_imagen_noticia']['settings'] = array(
    'image_style' => '265x155',
    'image_link' => '',
  );
  /* Field: Content: Post date */
  $handler->display->display_options['fields']['created']['id'] = 'created';
  $handler->display->display_options['fields']['created']['table'] = 'node';
  $handler->display->display_options['fields']['created']['field'] = 'created';
  $handler->display->display_options['fields']['created']['label'] = '';
  $handler->display->display_options['fields']['created']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['created']['date_format'] = 'custom';
  $handler->display->display_options['fields']['created']['custom_date_format'] = 'l, d - F - Y';
  $handler->display->display_options['fields']['created']['second_date_format'] = 'long';
  /* 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: Resumen */
  $handler->display->display_options['fields']['field_resumen']['id'] = 'field_resumen';
  $handler->display->display_options['fields']['field_resumen']['table'] = 'field_data_field_resumen';
  $handler->display->display_options['fields']['field_resumen']['field'] = 'field_resumen';
  $handler->display->display_options['fields']['field_resumen']['label'] = '';
  $handler->display->display_options['fields']['field_resumen']['element_label_colon'] = FALSE;
  /* 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';
  /* Contextual filter: Content: Unidad (field_unidad) */
  $handler->display->display_options['arguments']['field_unidad_target_id']['id'] = 'field_unidad_target_id';
  $handler->display->display_options['arguments']['field_unidad_target_id']['table'] = 'field_data_field_unidad';
  $handler->display->display_options['arguments']['field_unidad_target_id']['field'] = 'field_unidad_target_id';
  $handler->display->display_options['arguments']['field_unidad_target_id']['default_action'] = 'default';
  $handler->display->display_options['arguments']['field_unidad_target_id']['default_argument_type'] = 'node';
  $handler->display->display_options['arguments']['field_unidad_target_id']['summary']['number_of_records'] = '0';
  $handler->display->display_options['arguments']['field_unidad_target_id']['summary']['format'] = 'default_summary';
  $handler->display->display_options['arguments']['field_unidad_target_id']['summary_options']['items_per_page'] = '25';
  $handler->display->display_options['arguments']['field_unidad_target_id']['validate']['type'] = 'node';
  $handler->display->display_options['arguments']['field_unidad_target_id']['validate_options']['types'] = array(
    'unidades' => 'unidades',
  );
  $handler->display->display_options['arguments']['field_unidad_target_id']['validate_options']['access'] = TRUE;
  /* 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(
    'noticias' => 'noticias',
  );

  /* Display: Noticias destacadas unidad */
  $handler = $view->new_display('block', 'Noticias destacadas unidad', 'block');
  $export['noticias_unidades'] = $view;

  $view = new view();
  $view->name = 'slider_home_inferior';
  $view->description = '';
  $view->tag = 'default';
  $view->base_table = 'bean';
  $view->human_name = 'Slider Home inferior';
  $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'] = 'Slider Home inferior';
  $handler->display->display_options['use_more_always'] = FALSE;
  $handler->display->display_options['access']['type'] = 'none';
  $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'] = '10';
  $handler->display->display_options['style_plugin'] = 'default';
  $handler->display->display_options['row_plugin'] = 'fields';
  /* Field: Block: Link */
  $handler->display->display_options['fields']['field_link']['id'] = 'field_link';
  $handler->display->display_options['fields']['field_link']['table'] = 'field_data_field_link';
  $handler->display->display_options['fields']['field_link']['field'] = 'field_link';
  $handler->display->display_options['fields']['field_link']['label'] = '';
  $handler->display->display_options['fields']['field_link']['exclude'] = TRUE;
  $handler->display->display_options['fields']['field_link']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_link']['click_sort_column'] = 'url';
  $handler->display->display_options['fields']['field_link']['type'] = 'link_absolute';
  /* Field: Block: Slider imagen */
  $handler->display->display_options['fields']['field_slider_imagen']['id'] = 'field_slider_imagen';
  $handler->display->display_options['fields']['field_slider_imagen']['table'] = 'field_data_field_slider_imagen';
  $handler->display->display_options['fields']['field_slider_imagen']['field'] = 'field_slider_imagen';
  $handler->display->display_options['fields']['field_slider_imagen']['label'] = '';
  $handler->display->display_options['fields']['field_slider_imagen']['alter']['make_link'] = TRUE;
  $handler->display->display_options['fields']['field_slider_imagen']['alter']['path'] = '[field_link]';
  $handler->display->display_options['fields']['field_slider_imagen']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_slider_imagen']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_slider_imagen']['settings'] = array(
    'image_style' => '1125x350',
    'image_link' => '',
  );
  /* Filter criterion: Block: Type */
  $handler->display->display_options['filters']['type']['id'] = 'type';
  $handler->display->display_options['filters']['type']['table'] = 'bean';
  $handler->display->display_options['filters']['type']['field'] = 'type';
  $handler->display->display_options['filters']['type']['value'] = array(
    'slider_inferior_home' => 'slider_inferior_home',
  );

  /* Display: Block */
  $handler = $view->new_display('block', 'Block', 'block');
  $export['slider_home_inferior'] = $view;

  $view = new view();
  $view->name = 'slider_home_principal';
  $view->description = '';
  $view->tag = 'default';
  $view->base_table = 'bean';
  $view->human_name = 'Slider Home principal';
  $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'] = 'Slider Home principal';
  $handler->display->display_options['use_more_always'] = FALSE;
  $handler->display->display_options['access']['type'] = 'none';
  $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'] = '9';
  $handler->display->display_options['style_plugin'] = 'default';
  $handler->display->display_options['row_plugin'] = 'fields';
  /* Field: Block: Title */
  $handler->display->display_options['fields']['title']['id'] = 'title';
  $handler->display->display_options['fields']['title']['table'] = 'bean';
  $handler->display->display_options['fields']['title']['field'] = 'title';
  $handler->display->display_options['fields']['title']['label'] = '';
  $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  /* Field: Block: Link */
  $handler->display->display_options['fields']['field_link']['id'] = 'field_link';
  $handler->display->display_options['fields']['field_link']['table'] = 'field_data_field_link';
  $handler->display->display_options['fields']['field_link']['field'] = 'field_link';
  $handler->display->display_options['fields']['field_link']['label'] = '';
  $handler->display->display_options['fields']['field_link']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_link']['click_sort_column'] = 'url';
  /* Field: Block: Slider imagen */
  $handler->display->display_options['fields']['field_slider_imagen']['id'] = 'field_slider_imagen';
  $handler->display->display_options['fields']['field_slider_imagen']['table'] = 'field_data_field_slider_imagen';
  $handler->display->display_options['fields']['field_slider_imagen']['field'] = 'field_slider_imagen';
  $handler->display->display_options['fields']['field_slider_imagen']['label'] = '';
  $handler->display->display_options['fields']['field_slider_imagen']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_slider_imagen']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_slider_imagen']['settings'] = array(
    'image_style' => '965x400',
    'image_link' => '',
  );
  /* Filter criterion: Block: Type */
  $handler->display->display_options['filters']['type']['id'] = 'type';
  $handler->display->display_options['filters']['type']['table'] = 'bean';
  $handler->display->display_options['filters']['type']['field'] = 'type';
  $handler->display->display_options['filters']['type']['value'] = array(
    'slider_home_principal' => 'slider_home_principal',
  );

  /* Display: Block */
  $handler = $view->new_display('block', 'Block', 'block');
  $export['slider_home_principal'] = $view;

  return $export;
}
