You are here

function layout_admin_region_delete_form_submit in Layout 7

Form submission function to delete a region from the common region list.

See also

layout_admin_region_delete_form()

File

./layout.admin.regions.inc, line 188
Responsive layout builder tool administration interface for regions.

Code

function layout_admin_region_delete_form_submit($form, &$form_state) {
  layout_region_delete($form_state['values']['region']->name);
  drupal_set_message(t('Region %region deleted.', array(
    '%region' => $form_state['values']['region']->admin_title,
  )));
  $form_state['redirect'] = 'admin/structure/panels/layouts/regions';
}