function breakpoint_group_select_options

Load all breakpoint groups as select options.

Return value

array An array containing breakpoint group labels indexed by their ids.

1 call to breakpoint_group_select_options()

File

drupal/core/modules/breakpoint/breakpoint.module, line 329
Manage breakpoints and breakpoint groups for responsive designs.

Code

function breakpoint_group_select_options() {
  $options = array();
  $breakpoint_groups = entity_load_multiple('breakpoint_group');
  foreach ($breakpoint_groups as $breakpoint_group) {
    $options[$breakpoint_group
      ->id()] = $breakpoint_group
      ->label();
  }
  asort($options);
  return $options;
}