Removed some more override/default functions

8.0.x
Greg Dunlap 2012-01-07 15:15:49 +01:00
parent cd58ba59d7
commit 2293ba6716
2 changed files with 0 additions and 29 deletions

View File

@ -164,14 +164,6 @@ function image_style_form_add_submit($form, &$form_state) {
}
}
/**
* Submit handler for overriding a module-defined style.
*/
function image_style_form_override_submit($form, &$form_state) {
drupal_set_message(t('The %style style has been overridden, allowing you to change its settings.', array('%style' => $form_state['image_style']['name'])));
image_default_style_save($form_state['image_style']);
}
/**
* Submit handler for saving an image style.
*/

View File

@ -829,27 +829,6 @@ function image_style_path($style_name, $uri) {
return $scheme . '://styles/' . $style_name . '/' . $scheme . '/' . $path;
}
/**
* Save a default image style to the database.
*
* @param style
* An image style array provided by a module.
* @return
* 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($style['name'], $effect);
$effects[$effect['ieid']] = $effect;
}
$style['effects'] = $effects;
return $style;
}
/**
* Revert the changes made by users to a default image style.
*