You are here

function rlayout_delete_confirm in Layout 8

Page callback: Form constructor for layout deletion confirmation form.

See also

layout_menu()

1 string reference to 'rlayout_delete_confirm'
rlayout_menu in ./rlayout.module
Implements hook_menu().

File

./rlayout.admin.inc, line 45
Administration functions to maintain a set of layouts.

Code

function rlayout_delete_confirm($form, &$form_state, RLayout $layout) {

  // Always provide entity id in the same form key as in the entity edit form.
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $layout
      ->id(),
  );
  $form_state['layout'] = $layout;
  return confirm_form($form, t('Are you sure you want to remove the layout %title?', array(
    '%title' => $layout
      ->label(),
  )), 'admin/structure/layouts', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}