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

/**
 * Implements hook_ds_field_settings_info().
 */
function policia_features_ds_field_settings_info() {
  $export = array();

  $ds_fieldsetting = new stdClass();
  $ds_fieldsetting->api_version = 1;
  $ds_fieldsetting->id = 'node|unidades|default';
  $ds_fieldsetting->entity_type = 'node';
  $ds_fieldsetting->bundle = 'unidades';
  $ds_fieldsetting->view_mode = 'default';
  $ds_fieldsetting->settings = array(
    'noticias_destacadas_unidad' => array(
      'weight' => '3',
      'label' => 'hidden',
      'format' => 'default',
    ),
  );
  $export['node|unidades|default'] = $ds_fieldsetting;

  return $export;
}

/**
 * Implements hook_ds_custom_fields_info().
 */
function policia_features_ds_custom_fields_info() {
  $export = array();

  $ds_field = new stdClass();
  $ds_field->api_version = 1;
  $ds_field->field = 'noticias_destacadas_unidad';
  $ds_field->label = 'Noticias destacadas unidad';
  $ds_field->field_type = 6;
  $ds_field->entities = array(
    'node' => 'node',
  );
  $ds_field->ui_limit = '';
  $ds_field->properties = array(
    'block' => 'views|noticias_unidades-block',
    'block_render' => '3',
  );
  $export['noticias_destacadas_unidad'] = $ds_field;

  return $export;
}

/**
 * Implements hook_ds_layout_settings_info().
 */
function policia_features_ds_layout_settings_info() {
  $export = array();

  $ds_layout = new stdClass();
  $ds_layout->api_version = 1;
  $ds_layout->id = 'node|unidades|default';
  $ds_layout->entity_type = 'node';
  $ds_layout->bundle = 'unidades';
  $ds_layout->view_mode = 'default';
  $ds_layout->layout = 'ds_1col';
  $ds_layout->settings = array(
    'regions' => array(
      'ds_content' => array(
        0 => 'field_director',
        1 => 'field_saludo',
        2 => 'field_misi_n',
        3 => 'noticias_destacadas_unidad',
        4 => 'group_ataciudadano',
        5 => 'field_image',
        6 => 'group_atencion',
        7 => 'field_funciones',
        8 => 'field_direccion',
        9 => 'field_horarios',
        10 => 'field_telefonos',
        11 => 'field_correos',
        12 => 'field_organigrama',
        13 => 'field_rendicion_de_cuentas',
        14 => 'field_areas',
        15 => 'field_directorio_de_cuentas',
      ),
    ),
    'fields' => array(
      'field_director' => 'ds_content',
      'field_saludo' => 'ds_content',
      'field_misi_n' => 'ds_content',
      'noticias_destacadas_unidad' => 'ds_content',
      'group_ataciudadano' => 'ds_content',
      'field_image' => 'ds_content',
      'group_atencion' => 'ds_content',
      'field_funciones' => 'ds_content',
      'field_direccion' => 'ds_content',
      'field_horarios' => 'ds_content',
      'field_telefonos' => 'ds_content',
      'field_correos' => 'ds_content',
      'field_organigrama' => 'ds_content',
      'field_rendicion_de_cuentas' => 'ds_content',
      'field_areas' => 'ds_content',
      'field_directorio_de_cuentas' => 'ds_content',
    ),
    'classes' => array(),
    'wrappers' => array(
      'ds_content' => 'div',
    ),
    'layout_wrapper' => 'div',
    'layout_attributes' => '',
    'layout_attributes_merge' => 1,
    'layout_link_attribute' => '',
    'layout_link_custom' => '',
  );
  $export['node|unidades|default'] = $ds_layout;

  $ds_layout = new stdClass();
  $ds_layout->api_version = 1;
  $ds_layout->id = 'unidades|director|teaser';
  $ds_layout->entity_type = 'unidades';
  $ds_layout->bundle = 'director';
  $ds_layout->view_mode = 'teaser';
  $ds_layout->layout = 'ds_1col';
  $ds_layout->settings = array(
    'regions' => array(
      'ds_content' => array(
        0 => 'field_fotografia',
        1 => 'group_director',
        2 => 'field_nombre',
        3 => 'field_rango',
      ),
    ),
    'fields' => array(
      'field_fotografia' => 'ds_content',
      'group_director' => 'ds_content',
      'field_nombre' => 'ds_content',
      'field_rango' => 'ds_content',
    ),
    'classes' => array(),
    'wrappers' => array(
      'ds_content' => 'div',
    ),
    'layout_wrapper' => 'div',
    'layout_attributes' => '',
    'layout_attributes_merge' => 1,
    'layout_link_attribute' => '',
    'layout_link_custom' => '',
  );
  $export['unidades|director|teaser'] = $ds_layout;

  return $export;
}
