Projet

Général

Profil

Révision 950416da

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/field_collection/field_collection.api.php
16 16
 * This hook allows modules to determine whether a field collection is empty
17 17
 * before it is saved.
18 18
 *
19
 * @param boolean $empty
19
 * @param bool $is_empty
20 20
 *   Whether or not the field should be considered empty.
21 21
 * @param FieldCollectionItemEntity $item
22 22
 *   The field collection we are currently operating on.
......
182 182
    case 'field_my_first_collection':
183 183
      $item_wrapper = entity_metadata_wrapper('field_collection_item', $item);
184 184

  
185
      $title  = $item_wrapper->field_title->value();
185
      $title = $item_wrapper->field_title->value();
186 186
      $author = $item_wrapper->field_author->value();
187 187

  
188 188
      return "{$title} by {$author}";

Formats disponibles : Unified diff