You are here

function fieldable_panels_panes_entity_delete_form in Fieldable Panels Panes (FPP) 7

Menu callback -- ask for confirmation of node deletion.

1 string reference to 'fieldable_panels_panes_entity_delete_form'
fieldable_panels_panes_menu in ./fieldable_panels_panes.module
Implements hook_menu().

File

includes/admin.inc, line 142
Contains administrative pages and functions for fieldable entity panes.

Code

function fieldable_panels_panes_entity_delete_form($form, &$form_state, $entity) {
  $form_state['entity'] = $entity;
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $entity->title,
  )), 'admin/structure/fieldable-panels-panes/view/' . $entity->fpid, t('This action cannot be undone. Note that deleting this entity will not delete panes using it, they will exist but will display nothing.'), t('Delete'), t('Cancel'));
}