You are here

function gridbuilder_delete_confirm_submit in Grid builder 8

Form submission handler for gridbuilder_delete_confirm().

File

./gridbuilder.admin.inc, line 61
Administration functions to maintain a common set of grids for layouts.

Code

function gridbuilder_delete_confirm_submit($form, &$form_state) {
  $grid = $form_state['grid'];
  $grid
    ->delete();
  drupal_set_message(t('Grid %label has been deleted.', array(
    '%label' => $grid
      ->label(),
  )));
  watchdog('gridbuilder', 'Grid %label has been deleted.', array(
    '%label' => $grid
      ->label(),
  ), WATCHDOG_NOTICE);
  $form_state['redirect'] = 'admin/structure/grids';
}