function image_hotspots_install in Image Hotspots 7.2
Implements hook_install().
File
- ./
image_hotspots.install, line 67
Code
function image_hotspots_install() {
$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,
);
}
variable_set('image_hotspots_settings', $default_hotspots);
}