You are here

function paragraphs_items_delete_confirm_submit in Paragraphs table 7

Submit callback for deleting a field collection item.

File

./pharagraphs_table.pages.inc, line 71

Code

function paragraphs_items_delete_confirm_submit($form, &$form_state) {
  $paragraphs_items = $form_state['paragraphs_items'];
  entity_delete('paragraphs_items', $paragraphs_items->item_id);
  drupal_set_message(t('%label has been deleted.', array(
    '%label' => drupal_ucfirst($paragraphs_items
      ->label()),
  )));
  $form_state['redirect'] = '<front>';
}