Saves a default image style to the database.
style: An image style array provided by a module.
An image style array. The returned style array will include the new 'isid' assigned to the style.
function image_default_style_save($style) {
$style = image_style_save($style);
$effects = array();
foreach ($style['effects'] as $effect) {
$effect['isid'] = $style['isid'];
$effect = image_effect_save($effect);
$effects[$effect['ieid']] = $effect;
}
$style['effects'] = $effects;
return $style;
}