Skip to content

Instantly share code, notes, and snippets.

View patches-76431's full-sized avatar

patches-76431

View GitHub Profile
@patches-76431
patches-76431 / ck-latest.patch
Created May 13, 2014 12:54
Update ckeditor to the latest versionings
diff --git a/editors/ckeditor.inc b/editors/ckeditor.inc
index fcf168e..6c9a974 100644
--- a/editors/ckeditor.inc
+++ b/editors/ckeditor.inc
@@ -78,10 +78,12 @@ function wysiwyg_ckeditor_version($editor) {
// version:'CKEditor 3.0 SVN',revision:'3665'
// version:'3.0 RC',revision:'3753'
// version:'3.0.1',revision:'4391'
- if (preg_match('@version:\'(?:CKEditor )?([\d\.]+)(?:.+revision:\'([\d]+))?@', $line, $version)) {
+ if (TRUE) {
@patches-76431
patches-76431 / jquery.validate.js.patch
Created April 3, 2014 14:26
Modifies error message for select lists in clientside validation module
diff --git a/jquery-validate/jquery.validate.js b/jquery-validate/jquery.validate.js
index f3af308..af1dbc7 100644
--- a/jquery-validate/jquery.validate.js
+++ b/jquery-validate/jquery.validate.js
@@ -603,7 +603,8 @@ $.extend($.validator, {
// title is never undefined, so handle empty string as undefined
!this.settings.ignoreTitle && element.title || undefined,
$.validator.messages[method],
- "<strong>Warning: No message defined for " + element.name + "</strong>"
+ //"<strong>Warning: No message defined for " + element.name + "</strong>"
@patches-76431
patches-76431 / fix_attach_form.patch
Last active August 29, 2015 13:57
Fixes attach_form for field_collections
diff --git a/field_collection.module b/field_collection.module
index 3a08d04..a6af5de 100644
--- a/field_collection.module
+++ b/field_collection.module
@@ -1256,7 +1256,7 @@ function field_collection_field_attach_form($entity_type, $entity, &$form, &$for
if ($field_info['type'] == 'field_collection' && $field_settings['hide_blank_items']
&& field_access('edit', $field_info, $entity_type)
&& $form_state['field'][$field_name][$lang]['instance']['widget']['type'] != 'field_collection_hidden'
- && $form[$field_name][$lang]['#max_delta'] >= 0) {
+ && $form[$field_name][$lang]['#max_delta'] > 0) {
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* AES implementation in JavaScript (c) Chris Veness 2005-2012 */
/* - see http://csrc.nist.gov/publications/PubsFIPS.html#197 */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
var Aes = {}; // Aes namespace
/**
* AES Cipher function: encrypt 'input' state with Rijndael algorithm
* applies Nr rounds (10/12/14) using key schedule w for 'add round key' stage
<?php
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* AES implementation in PHP */
/* (c) Chris Veness 2005-2011 www.movable-type.co.uk/scripts */
/* Right of free use is granted for all commercial or non-commercial use providing this */
/* copyright notice is retainded. No warranty of any form is offered. */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
class Aes {
diff --git includes/bootstrap.inc includes/bootstrap.inc
index 74853b2..282a232 100644
--- includes/bootstrap.inc
+++ includes/bootstrap.inc
@@ -3383,3 +3383,52 @@ function _drupal_shutdown_function() {
}
}
}
+
+
diff --git modules/field/field.api.php modules/field/field.api.php
index 5f64117..683d9b6 100644
--- modules/field/field.api.php
+++ modules/field/field.api.php
@@ -259,6 +259,32 @@ function hook_field_schema($field) {
}
/**
+ * Allow modules to alter the schema for a field.
+ *
@patches-76431
patches-76431 / jquery_ui_dialog_patch.patch
Last active December 28, 2015 07:49
Patch to patch the patch for jquery ui supplied with drupal views module v3.5
diff --git a/js/jquery.ui.dialog.patch.js b/js/jquery.ui.dialog.patch.js
index d00e6ab..73d04ea 100644
--- a/js/jquery.ui.dialog.patch.js
+++ b/js/jquery.ui.dialog.patch.js
@@ -21,7 +21,9 @@
(function ($, undefined) {
if ($.ui && $.ui.dialog) {
+ if( $.ui.dialog.overlay ){
$.ui.dialog.overlay.events = $.map('focus,keydown,keypress'.split(','),
@patches-76431
patches-76431 / workflow_order_by_hid.patch
Last active December 28, 2015 07:49
Patch for drupal workflow module v1.1-rc1 to ensure that workflow states are ordered by the hid rather than the stamp.
diff --git a/workflow.module b/workflow.module
index 3beaa25..18acb35 100644
--- a/workflow.module
+++ b/workflow.module
@@ -1523,7 +1523,7 @@ function workflow_insert_workflow_scheduled_transition($data) {
function workflow_get_recent_node_history($nid) {
$results = db_query_range('SELECT h.*, s.state AS state_name FROM {workflow_node_history} h ' .
'INNER JOIN {workflow_states} s ON s.sid = h.sid ' .
- 'WHERE h.nid = :nid ORDER BY h.stamp DESC', 0, 1, array(':nid' => $nid));
+ 'WHERE h.nid = :nid ORDER BY h.hid DESC', 0, 1, array(':nid' => $nid));
@patches-76431
patches-76431 / robots_txt_simplify.patch
Created November 14, 2013 14:07
Simplifies the robots.txt entry in drupal 7.22 to ensure that all site areas are disallowed for crawlers and other bots.
diff --git a/robots.txt b/robots.txt
index 7de8435..2513d08 100644
--- a/robots.txt
+++ b/robots.txt
@@ -1,60 +1,3 @@
-#
-# robots.txt
-#
-# This file is to prevent the crawling and indexing of certain parts
-# of your site by web crawlers and spiders run by sites like Yahoo!