function layout_admin_region_delete_form in Layout 7
Form to delete a region from the common region list.
See also
layout_admin_region_delete_form_submit()
1 string reference to 'layout_admin_region_delete_form'
- layout_admin_region_delete in ./
layout.admin.regions.inc - Page callback for region deletion.
File
- ./
layout.admin.regions.inc, line 168 - Responsive layout builder tool administration interface for regions.
Code
function layout_admin_region_delete_form($form, $form_state, $region) {
$form['region'] = array(
'#type' => 'value',
'#value' => $region,
);
return confirm_form($form, t('Are you sure you want to delete the %region region?', array(
'%region' => $region->admin_title,
)), 'admin/structure/panels/layouts/regions', t('Deleting a region will make it unavailable for future layouts.'), t('Delete'), t('Cancel'));
}