You are here

function fieldable_panels_panes_entity_delete_revision_form in Fieldable Panels Panes (FPP) 7

Menu callback -- ask for confirmation of revision deletion.

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

File

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

Code

function fieldable_panels_panes_entity_delete_revision_form($form, &$form_state, $entity) {
  $form_state['entity'] = $entity;
  return confirm_form($form, t('Are you sure you want to delete the revision from %revision-date?', array(
    '%revision-date' => format_date($entity->timestamp),
  )), 'admin/structure/fieldable-panels-panes/view/' . $entity->fpid, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}