function layout_admin_region_edit_form_submit in Layout 7
Submission handler for region editing and addition form.
See also
layout_admin_region_edit_form()
File
- ./
layout.admin.regions.inc, line 253 - Responsive layout builder tool administration interface for regions.
Code
function layout_admin_region_edit_form_submit($form, &$form_state) {
$region = (object) array(
'name' => $form_state['values']['name'],
'admin_title' => $form_state['values']['admin_title'],
'custom' => (int) (!$form_state['values']['default']),
);
layout_region_save($region);
drupal_set_message(t('Region %region saved.', array(
'%region' => $form_state['values']['admin_title'],
)));
$form_state['redirect'] = 'admin/structure/panels/layouts/regions';
}