You are here

function field_collection_item_delete_confirm in Field collection 7

Form for deleting a field collection item.

1 string reference to 'field_collection_item_delete_confirm'
field_collection_menu in ./field_collection.module
Implements hook_menu().

File

./field_collection.pages.inc, line 74
Provides the field collection item view / edit / delete pages.

Code

function field_collection_item_delete_confirm($form, &$form_state, $field_collection_item) {
  $form_state += array(
    'field_collection_item' => $field_collection_item,
  );
  return confirm_form($form, t('Are you sure you want to delete %label?', array(
    '%label' => $field_collection_item
      ->label(),
  )), $field_collection_item
    ->path(), t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}