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 @ 41cc1b08

1
<?php
2
/**
3
 * @file
4
 * feeds_news.features.field_instance.inc
5
 */
6

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

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

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

    
74
  return $field_instances;
75
}