Closed (fixed)
Project:
Picture
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2014 at 17:12 UTC
Updated:
5 Aug 2014 at 12:21 UTC
Jump to comment: Most recent
Apparently
$element['colorbox_settings']['colorbox_gallery_custom'] = array(
'#title' => t('Custom gallery'),
'#type' => 'textfield',
'#maxlength' => 32,
'#default_value' => $settings['colorbox_settings']['colorbox_gallery_custom'],
'#description' => t('All images on a page with the same gallery value (rel attribute) will be grouped together. It must only contain lowercase letters, numbers, hyphen and underscores.'),
'#element_validate' => array('colorbox_gallery_custom_validate'),
'#required' => FALSE,
'#states' => array(
'visible' => array(
':input[name$="[settings][colorbox_settings][colorbox_gallery]"].picture-colorbox-gallery' => array('value' => 'custom'),
),
),
);
colorbox is required :)
It would be nice to wrap this in a module_exists() or introduce a dependency.
Comments
Comment #1
jimsmith commentedI ran into the same error. Once I installed Colorbox and the library the error went away. I have no need for Colorbox, though.
Comment #2
attiks commentedComment #5
kreatil commentedIt seems Colorbox 7.x-2.7 is required. I ran into the same error with Colorbox 7.x-1.6. Fixed it by upgrading to release 2.7.
Comment #6
jelle_sAdded hook_requirements to check the version of the colorbox module