You are here

function breakpoints_admin_breakpoints_submit_reload in Breakpoints 7

Admin form submit - Reload theme breakpoints.

1 string reference to 'breakpoints_admin_breakpoints_submit_reload'
breakpoints_admin_breakpoints in ./breakpoints.admin.inc
Admin form

File

./breakpoints.admin.inc, line 530
Breakpoints - admin settings

Code

function breakpoints_admin_breakpoints_submit_reload($form, &$form_state) {
  $group_name = $form_state['group_name'];
  $global_group = $group_name == '';
  if (!$global_group) {
    $group = breakpoints_breakpoint_group_load($group_name);
    if ($group) {
      breakpoints_breakpoints_group_reload($group);
    }
  }
}