#540798 by kjy07 and Jody Lynn: Require image style names.
parent
527054dd86
commit
0e8d1e8116
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue