You are here

function breakpoint_group_export_breakpoints in Breakpoints 7

Export callback.

See also

breakpoints_schema()

1 string reference to 'breakpoint_group_export_breakpoints'
breakpoints_schema in ./breakpoints.install
Implements hook_schema().

File

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

Code

function breakpoint_group_export_breakpoints($object, $field, $value, $indent) {
  ctools_include('export');
  $export = array();
  if (isset($object->breakpoints)) {
    foreach ($object->breakpoints as $breakpoint) {
      if (!is_array($breakpoint) && !is_object($breakpoint)) {
        $breakpoint = breakpoints_breakpoint_load_by_fullkey($breakpoint);
      }
      $export[] = $breakpoint->machine_name;
    }
  }
  return ctools_var_export($export, $indent);
}