diff --git a/modules/image/image.admin.inc b/modules/image/image.admin.inc index eb8e473559c862beb45cc3e417e96fc70796d06b..97cc59db9b0d6414ae4a1074966b948df7dadf8c 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(