You are here

function _bootstrap_grid_col_options in Bootstrap fieldgroup 7

Returns the choices available for the bootstrap_grid_col_[xs,sm,md,lg] configuration options. Provided by a function to avoid hardcoding them in multiple places in the code.

1 call to _bootstrap_grid_col_options()
_bootstrap_fieldgroup_grid_col_format_settings in ./bootstrap_fieldgroup.module
Helper function that returns the format settings array for the bootstrap_grid_col_[xs,sm,md,lg] options used in bootstrap_grid_row and bootstrap_grid_col field group format types.

File

./bootstrap_fieldgroup.module, line 623
Module file for the bootstrap_fieldgroup module.

Code

function _bootstrap_grid_col_options() {
  static $options;
  if (!isset($options)) {
    $options = array(
      0 => null,
      1 => '1',
      2 => '2',
      3 => '3',
      4 => '4',
      5 => '5',
      6 => '6',
      7 => '7',
      8 => '8',
      9 => '9',
      10 => '10',
      11 => '11',
      12 => '12',
    );
  }
  return $options;
}