You are here

function hook_default_footable_breakpoint in FooTable 7.2

Provides a default configuration for FooTable breakpoints.

This hook allows modules to provide their own FooTable breakpoints.

This hook should be placed in MODULENAME.footable_breakpoint.inc and it will be auto-loaded. MODULENAME.footable_breakpoint.inc *must* be in the same directory as the .module file which *must* also contain an implementation of hook_ctools_plugin_api, preferably with the same code as found in footable_ctools_plugin_api().

The $config->disabled boolean attribute indicates whether the FooTable breakpoint instance should be enabled (FALSE) or disabled (TRUE) by default.

Return value

array An associative array containing the structures of FooTable breakpoints, as generated from the Export tab, keyed by the FooTable breakpoint machine name.

See also

footable_default_footable_breakpoint()

footable_ctools_plugin_api()

1 function implements hook_default_footable_breakpoint()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

footable_default_footable_breakpoint in ./footable.footable_breakpoint.inc
Implements hook_default_footable_breakpoint().

File

./footable.api.php, line 50
API documentation for FooTable module.

Code

function hook_default_footable_breakpoint() {
  $footable_breakpoints = array();
  $footable_breakpoint = new stdClass();
  $footable_breakpoint->disabled = FALSE;
  $footable_breakpoint->api_version = 1;
  $footable_breakpoint->name = 'Example breakpoint';
  $footable_breakpoint->machine_name = 'breakpoint1';
  $footable_breakpoint->breakpoint = 1000;
  $footable_breakpoint[$footable_breakpoint->machine_name] = $footable_breakpoint;
  return $footable_breakpoints;
}