image_default_style_save
function image_default_style_save
image_default_style_save($style)
Saves a default image style to the database.
Parameters
style: An image style array provided by a module.
Return value
An image style array. The returned style array will include the new 'isid' assigned to the style.
File
- modules/image/image.module, line 1118
- Exposes global functionality for creating image styles.
Code
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!image!image.module/function/image_default_style_save/7.x