#540798 by kjy07 and Jody Lynn: Require image style names.

merge-requests/26/head
Angie Byron 2009-08-13 02:03:29 +00:00
parent 527054dd86
commit 0e8d1e8116
1 changed files with 2 additions and 0 deletions

View File

@ -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(