function layout_admin_region_edit in Layout 7
Page callback for region addition and editing.
File
- ./
layout.admin.regions.inc, line 199 - Responsive layout builder tool administration interface for regions.
Code
function layout_admin_region_edit($region = NULL) {
if (empty($region)) {
drupal_set_title(t('Add region'));
$region = (object) array(
'admin_title' => '',
'name' => '',
'weight' => 0,
'custom' => 1,
);
}
else {
drupal_set_title(t('Edit region @region', array(
'@region' => $region->admin_title,
)));
}
return drupal_get_form('layout_admin_region_edit_form', $region);
}