groups/modules/commons/commons_notices/commons_notices.features.field_instance.inc
Marton Kiss c2acc71500 Upgrade Drupal Commons to 7.x-3.23
Apply the security fixes including:
- Drupal Core - Moderately Critical - Multiple Vulnerabilities - SA-CORE-2015-001
- SA-CONTRIB-2015-079 - Chaos tool suite (ctools) - Multiple vulnerabilities

The following patches were applied to 7.x-3.23 commons modules:
- patches/0001-utility-links-block-install-theme.patch
- patches/0002-events-page-refactor-to-pages-module.patch

Installation profile got a refactor of module installation, as groups_ modules
and l10n_updates deployed from an installation task to avoid memory
exhausted errors of the installation process.

Change-Id: I48481657124fdbbee84e1cbfec3a3a2b5f475c2c
2015-03-24 16:38:09 +01:00

63 lines
1.4 KiB
PHP

<?php
/**
* @file
* commons_notices.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function commons_notices_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-notice-body'
$field_instances['node-notice-body'] = array(
'bundle' => 'notice',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => -49,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => -49,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Body',
'required' => FALSE,
'settings' => array(
'display_summary' => FALSE,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => -49,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Body');
return $field_instances;
}