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

jimsmith’s picture

I ran into the same error. Once I installed Colorbox and the library the error went away. I have no need for Colorbox, though.

attiks’s picture

Status: Active » Fixed

  • attiks committed 80a7487 on 7.x-2.x
    Issue #2296679 by jpstrikesback: Fixed Fatal error: Call to undefined...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kreatil’s picture

It 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.

jelle_s’s picture

Added hook_requirements to check the version of the colorbox module