You are here

function rlayout_delete_confirm_submit in Layout 8

Form submission handler for layout_delete_confirm().

File

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

Code

function rlayout_delete_confirm_submit($form, &$form_state) {
  $layout = $form_state['layout'];
  $layout
    ->delete();
  drupal_set_message(t('Layout %label has been deleted.', array(
    '%label' => $layout
      ->label(),
  )));
  watchdog('layout', 'Layout %label has been deleted.', array(
    '%label' => $layout
      ->label(),
  ), WATCHDOG_NOTICE);
  $form_state['redirect'] = 'admin/structure/layouts';
}