Removed some more override/default functions
parent
cd58ba59d7
commit
2293ba6716
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue