From 0e8d1e81160d431af68179dafb16f42e356598e3 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 13 Aug 2009 02:03:29 +0000 Subject: [PATCH] #540798 by kjy07 and Jody Lynn: Require image style names. --- modules/image/image.admin.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/image/image.admin.inc b/modules/image/image.admin.inc index eb8e473559c..97cc59db9b0 100644 --- a/modules/image/image.admin.inc +++ b/modules/image/image.admin.inc @@ -55,6 +55,7 @@ function image_style_form(&$form_state, $style) { '#default_value' => $style['name'], '#description' => t('The name is used in URLs for generated images. Use only lowercase alphanumeric characters, underscores (_), and hyphens (-).'), '#element_validate' => array('image_style_name_validate'), + '#required' => TRUE, ); // Build the list of existing image effects for this image style. @@ -196,6 +197,7 @@ function image_style_add_form(&$form_state) { '#default_value' => '', '#description' => t('The name is used in URLs for generated images. Use only lowercase alphanumeric characters, underscores (_), and hyphens (-).'), '#element_validate' => array('image_style_name_validate'), + '#required' => TRUE, ); $form['submit'] = array(