function footable_breakpoint_load_all in FooTable 7.2
Returns a list of FooTable breakpoints including or excluding the default FooTable breakpoints (All / Default).
Parameters
bool $default: Include the default FooTable breakpoints (All / Default).
bool $disabled: Include disabled breakpoints.
Return value
array List of loaded FooTable breakpoints.
1 call to footable_breakpoint_load_all()
- footable_plugin_style_footable::options_form in views/
footable_plugin_style_footable.inc - Render the given style.
File
- ./
footable.module, line 372 - Provides Views integration for the jQuery FooTable plugin.
Code
function footable_breakpoint_load_all($default = FALSE, $disabled = FALSE) {
$breakpoints = footable_breakpoint_load_multiple(array(), $disabled);
if ($default) {
$breakpoints['all'] = (object) array(
'name' => 'All',
'machine_name' => 'all',
'breakpoint' => 'all',
);
$breakpoints['default'] = (object) array(
'name' => 'Default',
'machine_name' => 'default',
'breakpoint' => 'default',
);
}
drupal_alter('footable_breakpoint_load_all', $breakpoints);
uasort($breakpoints, 'footable_breakpoint_sort');
return $breakpoints;
}