Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
.admin.inc: variable_get('colorbox_auto_image_nodes', 'disabled')
, possible values = ['disabled', 'colorbox']
.module: variable_get('colorbox_auto_image_nodes', 0)
, assumed possible values = [0, 1]
The attached patch changes the form options in admin.inc to match the module's 0 or 1 since there is only 2 options - enabled or disabled. This is more maintainable since checking for == 'colorbox'
could lead to trouble if someone changes the form options.
Comment | File | Size | Author |
---|---|---|---|
colorbox.admin_match-image-node-vars.patch | 684 bytes | recrit | |
Comments
Comment #1
recrit CreditAttribution: recrit commentedforgot to mention, you will need to resave your settings for the change to take effect.
Comment #2
frjo CreditAttribution: frjo commentedThanks! Committed to 6-dev.