Projet

Général

Profil

Paste
Télécharger (1,76 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / feeds / feeds_news / feeds_news.features.field_instance.inc @ ed9a13f1

1
<?php
2

    
3
/**
4
 * @file
5
 * feeds_news.features.field_instance.inc
6
 */
7

    
8
/**
9
 * Implements hook_field_default_field_instances().
10
 */
11
function feeds_news_field_default_field_instances() {
12
  $field_instances = array();
13

    
14
  // Exported field_instance: 'node-feed_item-field_feed_item_description'.
15
  $field_instances['node-feed_item-field_feed_item_description'] = array(
16
    'bundle' => 'feed_item',
17
    'default_value' => NULL,
18
    'deleted' => 0,
19
    'description' => '',
20
    'display' => array(
21
      'default' => array(
22
        'label' => 'hidden',
23
        'module' => 'text',
24
        'settings' => array(),
25
        'type' => 'text_default',
26
        'weight' => 0,
27
      ),
28
      'full' => array(
29
        'label' => 'above',
30
        'settings' => array(),
31
        'type' => 'hidden',
32
        'weight' => 0,
33
      ),
34
      'rss' => array(
35
        'label' => 'above',
36
        'settings' => array(),
37
        'type' => 'hidden',
38
        'weight' => 0,
39
      ),
40
      'teaser' => array(
41
        'label' => 'hidden',
42
        'module' => 'text',
43
        'settings' => array(
44
          'trim_length' => 600,
45
        ),
46
        'type' => 'text_trimmed',
47
        'weight' => 0,
48
      ),
49
    ),
50
    'entity_type' => 'node',
51
    'field_name' => 'field_feed_item_description',
52
    'label' => 'Description',
53
    'required' => 0,
54
    'settings' => array(
55
      'display_summary' => 0,
56
      'text_processing' => 1,
57
      'user_register_form' => FALSE,
58
    ),
59
    'widget' => array(
60
      'active' => 1,
61
      'module' => 'text',
62
      'settings' => array(
63
        'rows' => 20,
64
        'summary_rows' => 5,
65
      ),
66
      'type' => 'text_textarea_with_summary',
67
      'weight' => -4,
68
    ),
69
  );
70

    
71
  // Translatables
72
  // Included for use with string extractors like potx.
73
  t('Description');
74

    
75
  return $field_instances;
76
}