You are here

function image_hotspots_default in Image Hotspots 7.2

Default style settings array.

2 calls to image_hotspots_default()
image_hotspots_style_config in includes/image_hotspots.admin.inc
Builds Hotspots-style configuration form.
image_hotspots_style_config_submit in includes/image_hotspots.admin.inc
Hotspots-style configuration submit.

File

includes/image_hotspots.admin.inc, line 218
Admin configuration for module.

Code

function image_hotspots_default() {
  $default_opacity = '0.3';
  $default_colors = array(
    '6666FF',
    '66CCCC',
    'FF3366',
    'FF3300',
    'FFFF66',
    '33FF66',
    '99FF66',
    'FFCC99',
    '9966FF',
    '33CCFF',
  );
  $default_hotspots = array();
  foreach ($default_colors as $color) {
    $default_hotspots[] = array(
      'background-color' => $color,
      'opacity' => $default_opacity,
    );
  }
  return $default_hotspots;
}