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

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

  $view = new view();
  $view->name = 'historico_notificaciones_por_estado';
  $view->description = '';
  $view->tag = 'default';
  $view->base_table = 'status_notification_history';
  $view->human_name = 'Historico notificaciones por estado';
  $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'] = 'Historico notificaciones por estado';
  $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['exposed_form']['options']['submit_button'] = 'Buscar';
  $handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
  $handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Restablecer';
  $handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Ordenar por';
  $handler->display->display_options['pager']['type'] = 'full';
  $handler->display->display_options['pager']['options']['items_per_page'] = '20';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['pager']['options']['id'] = '0';
  $handler->display->display_options['pager']['options']['quantity'] = '9';
  $handler->display->display_options['pager']['options']['tags']['first'] = '« primera';
  $handler->display->display_options['pager']['options']['tags']['previous'] = '‹ anterior';
  $handler->display->display_options['pager']['options']['tags']['next'] = 'siguiente ›';
  $handler->display->display_options['pager']['options']['tags']['last'] = 'última »';
  $handler->display->display_options['style_plugin'] = 'table';
  $handler->display->display_options['style_options']['columns'] = array(
    'name' => 'name',
    'datetime_publish' => 'datetime_publish',
    'datetime_unpublish' => 'datetime_unpublish',
    'link_file' => 'link_file',
  );
  $handler->display->display_options['style_options']['class'] = '';
  $handler->display->display_options['style_options']['default'] = 'name';
  $handler->display->display_options['style_options']['info'] = array(
    'name' => array(
      'sortable' => 1,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ),
    'datetime_publish' => array(
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ),
    'datetime_unpublish' => array(
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ),
    'link_file' => array(
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ),
  );
  /* Campo: Custom Table Views: Nid */
  $handler->display->display_options['fields']['nid']['id'] = 'nid';
  $handler->display->display_options['fields']['nid']['table'] = 'status_notification_history';
  $handler->display->display_options['fields']['nid']['field'] = 'nid';
  /* Filter criterion: Custom Table Views: Name */
  $handler->display->display_options['filters']['name']['id'] = 'name';
  $handler->display->display_options['filters']['name']['table'] = 'status_notification_history';
  $handler->display->display_options['filters']['name']['field'] = 'name';
  $handler->display->display_options['filters']['name']['operator'] = 'word';
  $handler->display->display_options['filters']['name']['exposed'] = TRUE;
  $handler->display->display_options['filters']['name']['expose']['operator_id'] = 'name_op';
  $handler->display->display_options['filters']['name']['expose']['label'] = 'Buscar por nombre';
  $handler->display->display_options['filters']['name']['expose']['operator'] = 'name_op';
  $handler->display->display_options['filters']['name']['expose']['identifier'] = 'name';
  $handler->display->display_options['filters']['name']['expose']['remember_roles'] = array(
    2 => '2',
  );

  /* Display: Page */
  $handler = $view->new_display('page', 'Page', 'page');
  $handler->display->display_options['defaults']['access'] = FALSE;
  $handler->display->display_options['access']['type'] = 'perm';
  $handler->display->display_options['defaults']['fields'] = FALSE;
  /* Campo: Custom Table Views: Name */
  $handler->display->display_options['fields']['name']['id'] = 'name';
  $handler->display->display_options['fields']['name']['table'] = 'status_notification_history';
  $handler->display->display_options['fields']['name']['field'] = 'name';
  $handler->display->display_options['fields']['name']['label'] = 'Nombre';
  $handler->display->display_options['fields']['name']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['name']['alter']['text'] = '<small>[name] </small>';
  /* Campo: Custom Table Views: Datetime publish */
  $handler->display->display_options['fields']['datetime_publish']['id'] = 'datetime_publish';
  $handler->display->display_options['fields']['datetime_publish']['table'] = 'status_notification_history';
  $handler->display->display_options['fields']['datetime_publish']['field'] = 'datetime_publish';
  $handler->display->display_options['fields']['datetime_publish']['label'] = 'Fecha y hora de fijación';
  $handler->display->display_options['fields']['datetime_publish']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['datetime_publish']['alter']['text'] = '<small>[datetime_publish] </small>';
  $handler->display->display_options['fields']['datetime_publish']['date_format'] = 'long';
  $handler->display->display_options['fields']['datetime_publish']['second_date_format'] = 'long';
  /* Campo: Custom Table Views: Datetime unpublish */
  $handler->display->display_options['fields']['datetime_unpublish']['id'] = 'datetime_unpublish';
  $handler->display->display_options['fields']['datetime_unpublish']['table'] = 'status_notification_history';
  $handler->display->display_options['fields']['datetime_unpublish']['field'] = 'datetime_unpublish';
  $handler->display->display_options['fields']['datetime_unpublish']['label'] = 'Fecha y hora de des fijación';
  $handler->display->display_options['fields']['datetime_unpublish']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['datetime_unpublish']['alter']['text'] = '<small>[datetime_unpublish] </small>';
  $handler->display->display_options['fields']['datetime_unpublish']['date_format'] = 'long';
  $handler->display->display_options['fields']['datetime_unpublish']['second_date_format'] = 'long';
  /* Campo: Custom Table Views: Act type */
  $handler->display->display_options['fields']['act_type']['id'] = 'act_type';
  $handler->display->display_options['fields']['act_type']['table'] = 'status_notification_history';
  $handler->display->display_options['fields']['act_type']['field'] = 'act_type';
  $handler->display->display_options['fields']['act_type']['label'] = 'Tipo de acto ';
  $handler->display->display_options['fields']['act_type']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['act_type']['alter']['text'] = '<small>[act_type] </small>';
  $handler->display->display_options['path'] = 'historico-notificaciones-por-estado';
  $translatables['historico_notificaciones_por_estado'] = array(
    t('Master'),
    t('Historico notificaciones por estado'),
    t('more'),
    t('Buscar'),
    t('Restablecer'),
    t('Ordenar por'),
    t('Asc'),
    t('Desc'),
    t('Items per page'),
    t('- All -'),
    t('Offset'),
    t('« primera'),
    t('‹ anterior'),
    t('siguiente ›'),
    t('última »'),
    t('Nid'),
    t('.'),
    t(','),
    t('Buscar por nombre'),
    t('Page'),
    t('Nombre'),
    t('<small>[name] </small>'),
    t('Fecha y hora de fijación'),
    t('<small>[datetime_publish] </small>'),
    t('Fecha y hora de des fijación'),
    t('<small>[datetime_unpublish] </small>'),
    t('Tipo de acto '),
    t('<small>[act_type] </small>'),
  );
  $export['historico_notificaciones_por_estado'] = $view;

  $view = new view();
  $view->name = 'notificaciones_por_estado';
  $view->description = '';
  $view->tag = 'default';
  $view->base_table = 'node';
  $view->human_name = 'Notificaciones por estado';
  $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'] = 'Notificaciones por estado';
  $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['exposed_form']['options']['submit_button'] = 'Buscar';
  $handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
  $handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Restablecer';
  $handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Ordenar por';
  $handler->display->display_options['pager']['type'] = 'full';
  $handler->display->display_options['pager']['options']['items_per_page'] = '20';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['pager']['options']['id'] = '0';
  $handler->display->display_options['pager']['options']['quantity'] = '9';
  $handler->display->display_options['pager']['options']['tags']['first'] = '« primera';
  $handler->display->display_options['pager']['options']['tags']['previous'] = '';
  $handler->display->display_options['pager']['options']['tags']['next'] = '';
  $handler->display->display_options['pager']['options']['tags']['last'] = 'última »';
  $handler->display->display_options['style_plugin'] = 'table';
  $handler->display->display_options['style_options']['columns'] = array(
    'field_ne_nombre' => 'field_ne_nombre',
    'field_ne_datetime_active' => 'field_ne_datetime_active',
    'field_ne_datetime_active_1' => 'field_ne_datetime_active_1',
    'field_ne_admin_act_type' => 'field_ne_admin_act_type',
    'field_ne_process_number' => 'field_ne_process_number',
    'field_ne_file' => 'field_ne_file',
  );
  $handler->display->display_options['style_options']['class'] = '';
  $handler->display->display_options['style_options']['default'] = 'field_ne_nombre';
  $handler->display->display_options['style_options']['info'] = array(
    'field_ne_nombre' => array(
      'sortable' => 1,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ),
    'field_ne_datetime_active' => array(
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ),
    'field_ne_datetime_active_1' => array(
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ),
    'field_ne_admin_act_type' => array(
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ),
    'field_ne_process_number' => array(
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ),
    'field_ne_file' => array(
      'sortable' => 0,
      'default_sort_order' => 'asc',
      'align' => '',
      'separator' => '',
      'empty_column' => 0,
    ),
  );
  $handler->display->display_options['style_options']['empty_table'] = TRUE;
  /* Pie de página: Global: Texto sin filtrar */
  $handler->display->display_options['footer']['area_text_custom']['id'] = 'area_text_custom';
  $handler->display->display_options['footer']['area_text_custom']['table'] = 'views';
  $handler->display->display_options['footer']['area_text_custom']['field'] = 'area_text_custom';
  $handler->display->display_options['footer']['area_text_custom']['label'] = 'Footer historico';
  $handler->display->display_options['footer']['area_text_custom']['content'] = '<span>Es probable que en días anteriores su <b>notificación por estado</b> haya estado publicada, lo invitamos a validarlo en <a href="/historico-notificaciones-por-estado">histórico de notificaciones por estado.</a></span>';
  /* Campo: Contenido: Nombre */
  $handler->display->display_options['fields']['field_ne_nombre']['id'] = 'field_ne_nombre';
  $handler->display->display_options['fields']['field_ne_nombre']['table'] = 'field_data_field_ne_nombre';
  $handler->display->display_options['fields']['field_ne_nombre']['field'] = 'field_ne_nombre';
  /* Campo: Contenido: Fecha y hora activo */
  $handler->display->display_options['fields']['field_ne_datetime_active']['id'] = 'field_ne_datetime_active';
  $handler->display->display_options['fields']['field_ne_datetime_active']['table'] = 'field_data_field_ne_datetime_active';
  $handler->display->display_options['fields']['field_ne_datetime_active']['field'] = 'field_ne_datetime_active';
  $handler->display->display_options['fields']['field_ne_datetime_active']['label'] = 'Fecha de fijación';
  $handler->display->display_options['fields']['field_ne_datetime_active']['settings'] = array(
    'format_type' => 'short',
    'custom_date_format' => '',
    'fromto' => 'value',
    'multiple_number' => '',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_remaining_days' => 0,
  );
  /* Campo: Contenido: Fecha y hora activo */
  $handler->display->display_options['fields']['field_ne_datetime_active_1']['id'] = 'field_ne_datetime_active_1';
  $handler->display->display_options['fields']['field_ne_datetime_active_1']['table'] = 'field_data_field_ne_datetime_active';
  $handler->display->display_options['fields']['field_ne_datetime_active_1']['field'] = 'field_ne_datetime_active';
  $handler->display->display_options['fields']['field_ne_datetime_active_1']['label'] = 'Fecha y hora de des fijación';
  $handler->display->display_options['fields']['field_ne_datetime_active_1']['settings'] = array(
    'format_type' => 'short',
    'custom_date_format' => '',
    'fromto' => 'value2',
    'multiple_number' => '',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_remaining_days' => 0,
  );
  /* Campo: Contenido: Tipo de acto administrativo */
  $handler->display->display_options['fields']['field_ne_admin_act_type']['id'] = 'field_ne_admin_act_type';
  $handler->display->display_options['fields']['field_ne_admin_act_type']['table'] = 'field_data_field_ne_admin_act_type';
  $handler->display->display_options['fields']['field_ne_admin_act_type']['field'] = 'field_ne_admin_act_type';
  /* Campo: Contenido: Número de proceso */
  $handler->display->display_options['fields']['field_ne_process_number']['id'] = 'field_ne_process_number';
  $handler->display->display_options['fields']['field_ne_process_number']['table'] = 'field_data_field_ne_process_number';
  $handler->display->display_options['fields']['field_ne_process_number']['field'] = 'field_ne_process_number';
  /* Campo: Contenido: Archivo */
  $handler->display->display_options['fields']['field_ne_file']['id'] = 'field_ne_file';
  $handler->display->display_options['fields']['field_ne_file']['table'] = 'field_data_field_ne_file';
  $handler->display->display_options['fields']['field_ne_file']['field'] = 'field_ne_file';
  $handler->display->display_options['fields']['field_ne_file']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_ne_file']['type'] = 'file_download_link';
  $handler->display->display_options['fields']['field_ne_file']['settings'] = array(
    'text' => 'Descargar',
  );
  /* Filter criterion: Contenido: Published status */
  $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: Contenido: Tipo */
  $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(
    'notificaciones_por_estado' => 'notificaciones_por_estado',
  );
  $handler->display->display_options['filters']['type']['group'] = 1;
  /* Filter criterion: Contenido: Fecha y hora activo -  start date (field_ne_datetime_active) */
  $handler->display->display_options['filters']['field_ne_datetime_active_value']['id'] = 'field_ne_datetime_active_value';
  $handler->display->display_options['filters']['field_ne_datetime_active_value']['table'] = 'field_data_field_ne_datetime_active';
  $handler->display->display_options['filters']['field_ne_datetime_active_value']['field'] = 'field_ne_datetime_active_value';
  $handler->display->display_options['filters']['field_ne_datetime_active_value']['operator'] = '<=';
  $handler->display->display_options['filters']['field_ne_datetime_active_value']['group'] = 1;
  $handler->display->display_options['filters']['field_ne_datetime_active_value']['granularity'] = 'minute';
  $handler->display->display_options['filters']['field_ne_datetime_active_value']['default_date'] = 'now';
  /* Filter criterion: Contenido: Fecha y hora activo - end date (field_ne_datetime_active:value2) */
  $handler->display->display_options['filters']['field_ne_datetime_active_value2']['id'] = 'field_ne_datetime_active_value2';
  $handler->display->display_options['filters']['field_ne_datetime_active_value2']['table'] = 'field_data_field_ne_datetime_active';
  $handler->display->display_options['filters']['field_ne_datetime_active_value2']['field'] = 'field_ne_datetime_active_value2';
  $handler->display->display_options['filters']['field_ne_datetime_active_value2']['operator'] = '>=';
  $handler->display->display_options['filters']['field_ne_datetime_active_value2']['group'] = 1;
  $handler->display->display_options['filters']['field_ne_datetime_active_value2']['granularity'] = 'minute';
  $handler->display->display_options['filters']['field_ne_datetime_active_value2']['default_date'] = 'now';
  /* Filter criterion: Contenido: Nombre (field_ne_nombre) */
  $handler->display->display_options['filters']['field_ne_nombre_value']['id'] = 'field_ne_nombre_value';
  $handler->display->display_options['filters']['field_ne_nombre_value']['table'] = 'field_data_field_ne_nombre';
  $handler->display->display_options['filters']['field_ne_nombre_value']['field'] = 'field_ne_nombre_value';
  $handler->display->display_options['filters']['field_ne_nombre_value']['operator'] = 'word';
  $handler->display->display_options['filters']['field_ne_nombre_value']['exposed'] = TRUE;
  $handler->display->display_options['filters']['field_ne_nombre_value']['expose']['operator_id'] = 'field_ne_nombre_value_op';
  $handler->display->display_options['filters']['field_ne_nombre_value']['expose']['label'] = 'Buscar por nombre';
  $handler->display->display_options['filters']['field_ne_nombre_value']['expose']['operator'] = 'field_ne_nombre_value_op';
  $handler->display->display_options['filters']['field_ne_nombre_value']['expose']['identifier'] = 'name';
  $handler->display->display_options['filters']['field_ne_nombre_value']['expose']['remember_roles'] = array(
    2 => '2',
  );

  /* Display: Page */
  $handler = $view->new_display('page', 'Page', 'page');
  $handler->display->display_options['path'] = 'notificaciones-por-estado';
  $translatables['notificaciones_por_estado'] = array(
    t('Master'),
    t('Notificaciones por estado'),
    t('more'),
    t('Buscar'),
    t('Restablecer'),
    t('Ordenar por'),
    t('Asc'),
    t('Desc'),
    t('Items per page'),
    t('- All -'),
    t('Offset'),
    t('« primera'),
    t('última »'),
    t('Footer historico'),
    t('<span>Es probable que en días anteriores su <b>notificación por estado</b> haya estado publicada, lo invitamos a validarlo en <a href="/historico-notificaciones-por-estado">histórico de notificaciones por estado.</a></span>'),
    t('Nombre'),
    t('Fecha de fijación'),
    t('Fecha y hora de des fijación'),
    t('Tipo de acto administrativo'),
    t('Número de proceso'),
    t('Archivo'),
    t('Buscar por nombre'),
    t('Page'),
  );
  $export['notificaciones_por_estado'] = $view;

  return $export;
}
