Skip to content
Snippets Groups Projects
Commit 9361305b authored by Peter Droogmans's avatar Peter Droogmans
Browse files

helper function added

parent ad142861
Branches formcontroller
No related tags found
No related merge requests found
......@@ -241,3 +241,15 @@ function breakpoints_breakpoint_load_all() {
$breakpoints = entity_load_multiple('breakpoints_breakpoint');
return $breakpoints;
}
/**
* Load all breakpointsets as select options.
*/
function breakpoints_breakpointset_select_options() {
$options = array();
$breakpointsets = breakpoints_breakpointset_load_all();
foreach ($breakpointsets as $breakpointset) {
$options[$breakpointset->id()] = $breakpointset->label();
}
return $options;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment