diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-13 02:03:29 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-13 02:03:29 +0000 |
commit | 0e8d1e81160d431af68179dafb16f42e356598e3 (patch) | |
tree | 55fe116f31d3af4db304410d0387fea8421b9d65 /modules | |
parent | 527054dd86a8a8ff4f2115eb8384637eb450020a (diff) | |
download | brdo-0e8d1e81160d431af68179dafb16f42e356598e3.tar.gz brdo-0e8d1e81160d431af68179dafb16f42e356598e3.tar.bz2 |
#540798 by kjy07 and Jody Lynn: Require image style names.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/image/image.admin.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/image/image.admin.inc b/modules/image/image.admin.inc index eb8e47355..97cc59db9 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( |