You are here

function layout_region_save in Layout 7

Add or update region in common set of regions.

Parameters

$region: A fully populated region object.

3 calls to layout_region_save()
layout_admin_region_edit_form_submit in ./layout.admin.regions.inc
Submission handler for region editing and addition form.
layout_admin_region_list_form_submit in ./layout.admin.regions.inc
Form submission function for layout_admin_region_list().
layout_responsive_settings_form_submit in plugins/layouts/responsive.inc
Form submission. Process the changes to the layout.

File

./layout.module, line 169
Responsive layout builder tool for Panels.

Code

function layout_region_save($region) {
  ctools_include('export');
  $regions = ctools_export_crud_save('layout_region', $region);
  return $regions;
}