Projet

Général

Profil

Révision 582db59d

Ajouté par Assos Assos il y a plus de 8 ans

Update Drupal core to version 7.40

Voir les différences:

drupal7/modules/system/system.api.php
113 113
 *     translation handlers. Array keys are the module names, array values
114 114
 *     can be any data structure the module uses to provide field translation.
115 115
 *     Any empty value disallows the module to appear as a translation handler.
116
 *   - entity keys: An array describing how the Field API can extract the
117
 *     information it needs from the objects of the type. Elements:
116
 *   - entity keys: (optional) An array describing how the Field API can extract
117
 *     the information it needs from the objects of the type. Elements:
118 118
 *     - id: The name of the property that contains the primary id of the
119 119
 *       entity. Every entity object passed to the Field API must have this
120 120
 *       property and its value must be numeric.
121 121
 *     - revision: The name of the property that contains the revision id of
122 122
 *       the entity. The Field API assumes that all revision ids are unique
123 123
 *       across all entities of a type. This entry can be omitted if the
124
 *       entities of this type are not versionable.
124
 *       entities of this type are not versionable. Defaults to an empty string.
125 125
 *     - bundle: The name of the property that contains the bundle name for the
126 126
 *       entity. The bundle name defines which set of fields are attached to
127 127
 *       the entity (e.g. what nodes call "content type"). This entry can be
128 128
 *       omitted if this entity type exposes a single bundle (all entities have
129 129
 *       the same collection of fields). The name of this single bundle will be
130
 *       the same as the entity type.
130
 *       the same as the entity type. Defaults to an empty string.
131 131
 *     - label: The name of the property that contains the entity label. For
132 132
 *       example, if the entity's label is located in $entity->subject, then
133 133
 *       'subject' should be specified here. If complex logic is required to
......
2632 2632
 * module_enable() for a detailed description of the order in which install and
2633 2633
 * enable hooks are invoked.
2634 2634
 *
2635
 * This hook should be implemented in a .module file, not in an .install file.
2636
 *
2635 2637
 * @param $modules
2636 2638
 *   An array of the modules that were installed.
2637 2639
 *
......
3173 3175
 * creation and alteration of the supported database engines.
3174 3176
 *
3175 3177
 * See the Schema API Handbook at http://drupal.org/node/146843 for details on
3176
 * schema definition structures.
3178
 * schema definition structures. Note that foreign key definitions are for
3179
 * documentation purposes only; foreign keys are not created in the database,
3180
 * nor are they enforced by Drupal.
3177 3181
 *
3178 3182
 * @return array
3179 3183
 *   A schema definition structure array. For each element of the
......
3225 3229
      'nid_vid' => array('nid', 'vid'),
3226 3230
      'vid'     => array('vid'),
3227 3231
    ),
3232
    // For documentation purposes only; foreign keys are not created in the
3233
    // database.
3228 3234
    'foreign keys' => array(
3229 3235
      'node_revision' => array(
3230 3236
        'table' => 'node_revision',

Formats disponibles : Unified diff