You are here

function breakpoints_breakpoints_group_exporttotheme in Breakpoints 7

Export breakpoints ready for theme.info inclusion.

1 call to breakpoints_breakpoints_group_exporttotheme()
breakpoints_admin_breakpoints_submit_exporttotheme in ./breakpoints.admin.inc
Admin form submit - Export breakpoints to theme.

File

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

Code

function breakpoints_breakpoints_group_exporttotheme(&$group) {
  $export = array();
  foreach ($group->breakpoints as $breakpoint_name) {
    $breakpoint = breakpoints_breakpoint_load_by_fullkey($breakpoint_name);
    if ($breakpoint && $breakpoint->status) {
      $export[$breakpoint->name] = $breakpoint->breakpoint;
    }
  }
  return $export;
}