Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Issue forks
colorbox-3183921
Commits
aa2aba99
Commit
aa2aba99
authored
Jun 16, 2014
by
frjo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2283859
by codi: Fixed Ajax error when using the colorbox field handler in views.
parent
6d217cfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colorbox.module
colorbox.module
+1
-1
No files found.
colorbox.module
View file @
aa2aba99
...
...
@@ -396,7 +396,7 @@ function colorbox_field_formatter_settings_form($field, $instance, $view_mode, $
* Validate function for colorbox_gallery_custom.
*/
function
colorbox_gallery_custom_validate
(
$element
,
&
$form_state
)
{
if
(
$form_state
[
'values'
][
'fields'
][
'field_image'
][
'settings_edit_form'
][
'settings'
][
'colorbox_gallery'
]
==
'custom'
&&
!
preg_match
(
'!^[a-z0-9_-]+$!'
,
$element
[
'#value'
]))
{
if
(
!
empty
(
$element
[
'#value'
])
&&
!
preg_match
(
'!^[a-z0-9_-]+$!'
,
$element
[
'#value'
]))
{
form_error
(
$element
,
t
(
'%name must only contain lowercase letters, numbers, hyphen and underscores.'
,
array
(
'%name'
=>
$element
[
'#title'
])));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment