You are here

function footable_update_7201 in FooTable 7.2

Add the 7-x.1.x breakpoints to provide backwards compatibility with the 7.x-1.x version.

File

./footable.install, line 167
Install, update, and uninstall functions for the FooTable module.

Code

function footable_update_7201() {
  if (!footable_breakpoint_load('phone')) {
    $breakpoint = new stdClass();
    $breakpoint->disabled = FALSE;
    $breakpoint->api_version = 1;
    $breakpoint->name = 'Phone';
    $breakpoint->machine_name = 'phone';
    $breakpoint->breakpoint = 480;
    footable_breakpoint_save($breakpoint);
  }
  if (!footable_breakpoint_load('tablet')) {
    $breakpoint = new stdClass();
    $breakpoint->disabled = FALSE;
    $breakpoint->api_version = 1;
    $breakpoint->name = 'Tablet';
    $breakpoint->machine_name = 'tablet';
    $breakpoint->breakpoint = 1024;
    footable_breakpoint_save($breakpoint);
  }
}