Projet

Général

Profil

Révision a1cafe7e

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/field_collection/field_collection.pages.inc
8 8
// TODO: fix being embedded in a host with revisions.
9 9

  
10 10
/**
11
 * Field collection item view page.
11
 * Field Collection item view page.
12 12
 */
13 13
function field_collection_item_page_view($field_collection_item) {
14 14
  // @todo: Set breadcrumb including the host.
......
86 86
 */
87 87
function field_collection_item_delete_confirm_submit($form, &$form_state) {
88 88
  $field_collection_item = $form_state['field_collection_item'];
89
  $field_collection_item->deleteRevision();
89
  entity_delete('field_collection_item',$field_collection_item->item_id);
90 90
  drupal_set_message(t('%label has been deleted.', array('%label' => drupal_ucfirst($field_collection_item->label()))));
91 91
  $form_state['redirect'] = '<front>';
92 92
}

Formats disponibles : Unified diff