Issue #1614292 by brockjo: Fixed image_style_delete_form() doesn't take form_state() by reference.
parent
9f31a02609
commit
8c4df67ab7
|
@ -271,7 +271,7 @@ function image_style_name_validate($element, $form_state) {
|
||||||
* @ingroup forms
|
* @ingroup forms
|
||||||
* @see image_style_delete_form_submit()
|
* @see image_style_delete_form_submit()
|
||||||
*/
|
*/
|
||||||
function image_style_delete_form($form, $form_state, $style) {
|
function image_style_delete_form($form, &$form_state, $style) {
|
||||||
$form_state['image_style'] = $style;
|
$form_state['image_style'] = $style;
|
||||||
|
|
||||||
$replacement_styles = array_diff_key(image_style_options(), array($style['name'] => ''));
|
$replacement_styles = array_diff_key(image_style_options(), array($style['name'] => ''));
|
||||||
|
|
Loading…
Reference in New Issue