You are here

function breakpoints_form_system_theme_settings_alter_submit in Breakpoints 7

1 string reference to 'breakpoints_form_system_theme_settings_alter_submit'
breakpoints_form_system_theme_settings_alter in ./breakpoints.module
Implements hook_permission().

File

./breakpoints.module, line 915
Breakpoints @todo: provide button to reload breakpoints from theme

Code

function breakpoints_form_system_theme_settings_alter_submit(&$form, &$form_state) {
  $theme = $form_state['build_info']['args'][0];
  $group = breakpoints_breakpoint_group_load($theme);
  if ($group) {
    breakpoints_breakpoints_group_reload($group);
  }
  else {
    breakpoints_themes_enabled(array(
      $theme,
    ));
  }
}