Last active
December 22, 2015 23:58
-
-
Save thewilkybarkid/6550012 to your computer and use it in GitHub Desktop.
Patch for the Drupal fancyBox module (verrsion 7.x-2.0-beta6) to remove the jQuery version checking (assumes that your theme provides version 1.7+).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/fancybox.admin.inc b/fancybox.admin.inc | |
index 8ba8a31..d95ddc3 100644 | |
--- a/fancybox.admin.inc | |
+++ b/fancybox.admin.inc | |
@@ -44,12 +44,6 @@ function fancybox_admin_settings_form($form, &$form_state) { | |
$jquery = drupal_get_library('system', 'jquery'); | |
- if (version_compare($jquery['version'], '1.7', '<')) { | |
- drupal_set_message(t('fancyBox requires jQuery 1.7 or higher. Please !configure to use a higher jQuery version.', array('!configure' => l(t('configure jQuery Update'), 'admin/config/development/jquery_update'))), 'error'); | |
- | |
- return; | |
- } | |
- | |
$form['settings'] = array( | |
'#type' => 'fieldset', | |
'#title' => t('Settings'), | |
diff --git a/fancybox.info b/fancybox.info | |
index d6726e7..75edd82 100644 | |
--- a/fancybox.info | |
+++ b/fancybox.info | |
@@ -5,7 +5,6 @@ package = User interface | |
configure = admin/config/user-interface/fancybox | |
dependencies[] = image | |
dependencies[] = libraries | |
-dependencies[] = jquery_update | |
; Information added by Drupal.org packaging script on 2015-04-01 | |
version = "7.x-2.0-beta6" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the patch. Worked a treat!