You are here

function gridbuilder_default_gridbuilder_grids in Grid builder 7

Implementation of hook_default_gridbuilder_grids().

Provide a couple of default grids.

File

./gridbuilder.module, line 66
Simple grid builder tool.

Code

function gridbuilder_default_gridbuilder_grids() {
  $export = array();

  // Add a few fluid layouts. These are used by layout module.
  $grid = new stdClass();
  $grid->api_version = 1;
  $grid->name = 'three_column_fluid';
  $grid->admin_title = 'Three column fluid';
  $grid->grid_type = GRIDBUILDER_FLUID;
  $grid->width = '100';
  $grid->columns = '3';
  $grid->padding_width = '1.5';
  $grid->gutter_width = '2';
  $export['three_column_fluid'] = $grid;
  $grid = new stdClass();
  $grid->api_version = 1;
  $grid->name = 'six_column_fluid';
  $grid->admin_title = 'Six column fluid';
  $grid->grid_type = GRIDBUILDER_FLUID;
  $grid->width = '100';
  $grid->columns = '6';
  $grid->padding_width = '1.5';
  $grid->gutter_width = '2';
  $export['six_column_fluid'] = $grid;
  $grid = new stdClass();
  $grid->api_version = 1;
  $grid->name = 'twelve_column_fluid';
  $grid->admin_title = 'Twelve column fluid';
  $grid->grid_type = GRIDBUILDER_FLUID;
  $grid->width = '100';
  $grid->columns = '12';
  $grid->padding_width = '1.5';
  $grid->gutter_width = '2';
  $export['twelve_column_fluid'] = $grid;

  // Add a couple fixed layouts for the sake of example.
  $grid = new stdClass();
  $grid->api_version = 1;
  $grid->name = 'ninesixty_12';
  $grid->admin_title = '960px wide, 12 column grid';
  $grid->grid_type = GRIDBUILDER_FIXED;
  $grid->width = '960';
  $grid->columns = '12';
  $grid->padding_width = '20';
  $grid->gutter_width = '10';
  $export['ninesixty_12'] = $grid;
  $grid = new stdClass();
  $grid->api_version = 1;
  $grid->name = 'ninesixty_16';
  $grid->admin_title = '960px wide, 16 column grid';
  $grid->grid_type = GRIDBUILDER_FIXED;
  $grid->width = '960';
  $grid->columns = '16';
  $grid->padding_width = '20';
  $grid->gutter_width = '10';
  $export['ninesixty_16'] = $grid;
  return $export;
}