You are here

function empty_page_admin_delete_form in Empty Page 7

The Empty Page callback delete confirmation form.

Parameters

array $form_state:

int $cid:

Return value

array $form

1 string reference to 'empty_page_admin_delete_form'
empty_page_menu in ./empty_page.module
Implements hook_menu().

File

./empty_page.admin.inc, line 65
Administrative functionality for Empty Page module.

Code

function empty_page_admin_delete_form($form, &$form_state, $cid) {

  // Get current editor properties.
  $callback = empty_page_get_callback($cid);
  if (!$callback) {
    drupal_goto('admin/structure/empty-page');
  }
  drupal_set_title('Delete callback');
  $form = confirm_form(array(
    'callback' => array(
      '#type' => 'value',
      '#value' => $callback,
    ),
  ), t('Are you sure you want to delete the callback for <em>!path</em>?', array(
    '!path' => $callback->path,
  )), 'admin/structure/empty-page', t('This action cannot be undone.'), t('Delete callback'), t('Cancel'));
  $form_state['#redirect'] = 'admin/structure/empty-page';
  return $form;
}