Skip to content
austrofeedr_base_common.features.field.inc 7.87 KiB
Newer Older
dasjo's avatar
dasjo committed
<?php
dasjo's avatar
dasjo committed
/**
 * @file
 * austrofeedr_base_common.features.field.inc
 */
dasjo's avatar
dasjo committed

/**
 * Implementation of hook_field_default_fields().
 */
function austrofeedr_base_common_field_default_fields() {
dasjo's avatar
dasjo committed
  $fields = array();

  // Exported field: 'node-update-body'
  $fields['node-update-body'] = array(
dasjo's avatar
dasjo committed
    'field_config' => array(
      'active' => '1',
      'cardinality' => '1',
      'deleted' => '0',
      'entity_types' => array(
dasjo's avatar
dasjo committed
        0 => 'node',
dasjo's avatar
dasjo committed
      ),
      'field_name' => 'body',
      'foreign keys' => array(
        'format' => array(
          'columns' => array(
            'format' => 'format',
          ),
          'table' => 'filter_format',
        ),
      ),
      'indexes' => array(
        'format' => array(
dasjo's avatar
dasjo committed
          0 => 'format',
dasjo's avatar
dasjo committed
        ),
      ),
      'module' => 'text',
      'settings' => array(),
      'translatable' => '1',
      'type' => 'text_with_summary',
    ),
    'field_instance' => array(
      'bundle' => 'update',
dasjo's avatar
dasjo committed
      'default_value' => NULL,
      'deleted' => '0',
      'description' => '',
      'display' => array(
        'default' => array(
          'label' => 'hidden',
          'module' => 'text',
          'settings' => array(),
          'type' => 'text_default',
          'weight' => 0,
        ),
        'full' => array(
          'label' => 'above',
          'settings' => array(),
          'type' => 'hidden',
          'weight' => 0,
        ),
        'rss' => array(
          'label' => 'above',
          'settings' => array(),
          'type' => 'hidden',
          'weight' => 0,
        ),
        'search_index' => array(
          'label' => 'above',
          'settings' => array(),
          'type' => 'hidden',
          'weight' => 0,
        ),
        'search_result' => array(
          'label' => 'above',
          'settings' => array(),
          'type' => 'hidden',
          'weight' => 0,
        ),
        'teaser' => array(
          'label' => 'hidden',
          'module' => 'text',
          'settings' => array(
            'trim_length' => 600,
          ),
          'type' => 'text_summary_or_trimmed',
dasjo's avatar
dasjo committed
          'weight' => '1',
dasjo's avatar
dasjo committed
        ),
      ),
      'entity_type' => 'node',
      'field_name' => 'body',
      'label' => 'Body',
      'required' => FALSE,
      'settings' => array(
        'display_summary' => TRUE,
        'text_processing' => 1,
dasjo's avatar
dasjo committed
        'user_register_form' => FALSE,
dasjo's avatar
dasjo committed
      ),
      'widget' => array(
        'module' => 'text',
        'settings' => array(
          'rows' => 20,
          'summary_rows' => 5,
        ),
        'type' => 'text_textarea_with_summary',
        'weight' => '-4',
      ),
      'widget_type' => 'text_textarea_with_summary',
    ),
  );

  // Exported field: 'node-update-field_update_author'
  $fields['node-update-field_update_author'] = array(
dasjo's avatar
dasjo committed
    'field_config' => array(
      'active' => '1',
      'cardinality' => '1',
      'deleted' => '0',
      'entity_types' => array(),
      'field_name' => 'field_update_author',
dasjo's avatar
dasjo committed
      'foreign keys' => array(
        'format' => array(
          'columns' => array(
            'format' => 'format',
          ),
          'table' => 'filter_format',
        ),
      ),
      'indexes' => array(
        'format' => array(
dasjo's avatar
dasjo committed
          0 => 'format',
dasjo's avatar
dasjo committed
        ),
      ),
      'module' => 'text',
      'settings' => array(
        'max_length' => '255',
      ),
      'translatable' => '1',
      'type' => 'text',
    ),
    'field_instance' => array(
      'bundle' => 'update',
dasjo's avatar
dasjo committed
      'default_value' => NULL,
      'deleted' => '0',
      'description' => '',
      'display' => array(
        'default' => array(
          'label' => 'above',
          'module' => 'text',
          'settings' => array(),
          'type' => 'text_default',
          'weight' => 2,
        ),
        'teaser' => array(
          'label' => 'above',
          'settings' => array(),
          'type' => 'hidden',
dasjo's avatar
dasjo committed
          'weight' => '5',
dasjo's avatar
dasjo committed
        ),
      ),
      'entity_type' => 'node',
      'field_name' => 'field_update_author',
dasjo's avatar
dasjo committed
      'label' => 'Author',
      'required' => 0,
      'settings' => array(
        'text_processing' => '0',
dasjo's avatar
dasjo committed
        'user_register_form' => FALSE,
dasjo's avatar
dasjo committed
      ),
      'widget' => array(
        'active' => 1,
        'module' => 'text',
        'settings' => array(
          'size' => '60',
        ),
        'type' => 'text_textfield',
        'weight' => '-1',
      ),
    ),
  );

dasjo's avatar
dasjo committed
  // Exported field: 'node-update-field_update_tags'
  $fields['node-update-field_update_tags'] = array(
dasjo's avatar
dasjo committed
    'field_config' => array(
      'active' => '1',
dasjo's avatar
dasjo committed
      'cardinality' => '-1',
dasjo's avatar
dasjo committed
      'deleted' => '0',
      'entity_types' => array(),
dasjo's avatar
dasjo committed
      'field_name' => 'field_update_tags',
      'foreign keys' => array(),
dasjo's avatar
dasjo committed
      'indexes' => array(
dasjo's avatar
dasjo committed
        'tid' => array(
          0 => 'tid',
dasjo's avatar
dasjo committed
        ),
      ),
dasjo's avatar
dasjo committed
      'module' => 'taxonomy',
dasjo's avatar
dasjo committed
      'settings' => array(
dasjo's avatar
dasjo committed
        'allowed_values' => array(
          0 => array(
            'parent' => '0',
            'vocabulary' => 'update_tags',
          ),
        ),
dasjo's avatar
dasjo committed
      ),
      'translatable' => '1',
dasjo's avatar
dasjo committed
      'type' => 'taxonomy_term_reference',
dasjo's avatar
dasjo committed
    ),
    'field_instance' => array(
      'bundle' => 'update',
dasjo's avatar
dasjo committed
      'default_value' => NULL,
      'deleted' => '0',
      'description' => '',
      'display' => array(
        'default' => array(
          'label' => 'above',
dasjo's avatar
dasjo committed
          'module' => 'taxonomy',
dasjo's avatar
dasjo committed
          'settings' => array(),
dasjo's avatar
dasjo committed
          'type' => 'taxonomy_term_reference_link',
          'weight' => 4,
dasjo's avatar
dasjo committed
        ),
        'teaser' => array(
          'label' => 'above',
          'settings' => array(),
          'type' => 'hidden',
dasjo's avatar
dasjo committed
          'weight' => '3',
dasjo's avatar
dasjo committed
        ),
      ),
      'entity_type' => 'node',
dasjo's avatar
dasjo committed
      'field_name' => 'field_update_tags',
      'label' => 'Update Tags',
dasjo's avatar
dasjo committed
      'required' => 0,
      'settings' => array(
dasjo's avatar
dasjo committed
        'user_register_form' => FALSE,
dasjo's avatar
dasjo committed
      ),
      'widget' => array(
dasjo's avatar
dasjo committed
        'active' => 0,
        'module' => 'taxonomy',
dasjo's avatar
dasjo committed
        'settings' => array(
dasjo's avatar
dasjo committed
          'autocomplete_path' => 'taxonomy/autocomplete',
          'size' => 60,
dasjo's avatar
dasjo committed
        ),
dasjo's avatar
dasjo committed
        'type' => 'taxonomy_autocomplete',
        'weight' => '1',
dasjo's avatar
dasjo committed
  // Exported field: 'node-update-field_update_url'
  $fields['node-update-field_update_url'] = array(
dasjo's avatar
dasjo committed
    'field_config' => array(
      'active' => '1',
dasjo's avatar
dasjo committed
      'cardinality' => '1',
dasjo's avatar
dasjo committed
      'deleted' => '0',
      'entity_types' => array(),
dasjo's avatar
dasjo committed
      'field_name' => 'field_update_url',
      'foreign keys' => array(
        'format' => array(
          'columns' => array(
            'format' => 'format',
          ),
          'table' => 'filter_format',
        ),
      ),
dasjo's avatar
dasjo committed
      'indexes' => array(
dasjo's avatar
dasjo committed
        'format' => array(
          0 => 'format',
dasjo's avatar
dasjo committed
      'module' => 'text',
dasjo's avatar
dasjo committed
      'settings' => array(
dasjo's avatar
dasjo committed
        'max_length' => '255',
dasjo's avatar
dasjo committed
      ),
      'translatable' => '1',
dasjo's avatar
dasjo committed
      'type' => 'text',
dasjo's avatar
dasjo committed
    ),
    'field_instance' => array(
      'bundle' => 'update',
dasjo's avatar
dasjo committed
      'default_value' => NULL,
      'deleted' => '0',
      'description' => '',
dasjo's avatar
dasjo committed
      'display' => array(
        'default' => array(
          'label' => 'above',
dasjo's avatar
dasjo committed
          'module' => 'text',
dasjo's avatar
dasjo committed
          'settings' => array(),
dasjo's avatar
dasjo committed
          'type' => 'text_default',
          'weight' => 3,
dasjo's avatar
dasjo committed
        ),
        'teaser' => array(
          'label' => 'above',
          'settings' => array(),
          'type' => 'hidden',
dasjo's avatar
dasjo committed
          'weight' => '4',
dasjo's avatar
dasjo committed
        ),
      ),
      'entity_type' => 'node',
dasjo's avatar
dasjo committed
      'field_name' => 'field_update_url',
      'label' => 'Item URL',
dasjo's avatar
dasjo committed
      'required' => 0,
dasjo's avatar
dasjo committed
      'settings' => array(
dasjo's avatar
dasjo committed
        'text_processing' => '0',
dasjo's avatar
dasjo committed
        'user_register_form' => FALSE,
      ),
dasjo's avatar
dasjo committed
      'widget' => array(
dasjo's avatar
dasjo committed
        'active' => 1,
        'module' => 'text',
dasjo's avatar
dasjo committed
        'settings' => array(
dasjo's avatar
dasjo committed
          'size' => '60',
dasjo's avatar
dasjo committed
        ),
dasjo's avatar
dasjo committed
        'type' => 'text_textfield',
        'weight' => '0',
dasjo's avatar
dasjo committed
      ),
    ),
  );

dasjo's avatar
dasjo committed
  // Translatables
  // Included for use with string extractors like potx.
  t('Author');
  t('Body');
  t('Item URL');
  t('Update Tags');

dasjo's avatar
dasjo committed
  return $fields;
}