This file contains 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
<?php | |
/* | |
If you have a large number of existing files then you will want | |
to implement batch in hook_update_N(). I didn't need that so it | |
isn't implemented here. If you need it read this article | |
http://bleen.net/blog/running-batch-processes-update-hook-bed | |
*/ | |
/** |
This file contains 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
<?php | |
$type = 'rules_config'; | |
$query = new EntityFieldQuery(); | |
$rules = $query->entityCondition('entity_type', $type) | |
->execute(); | |
if (!$rules) { | |
return; | |
} |
This file contains 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
// Lifted from https://stackoverflow.com/a/22103222 | |
if (typeof console === "undefined" || typeof console.log === "undefined") { | |
console.log = function(msg) { | |
alert(msg); | |
}; | |
} |
This file contains 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
From 26a7752c34321fd9cb889308f507ca6bdb777f08 Mon Sep 17 00:00:00 2001 | |
From: David Rothstein | |
Date: Wed, 15 Oct 2014 14:31:54 +0000 | |
Subject: SA-CORE-2014-005 by Stefan Horst, greggles, larowlan, David_Rothstein, klausi: Fixed SQL injection vulnerability | |
--- | |
diff --git a/includes/database/database.inc b/includes/database/database.inc | |
index f78098b..01b6385 100644 | |
--- a/includes/database/database.inc | |
+++ b/includes/database/database.inc |
This file contains 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
cd /path/to/modules/contrib && for module in $(gfind -type d -maxdepth 1 | cut -d/ -f2); do gfind $module -name \*.info ! -name $module.info; done |
This file contains 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
drush eval 'drush_print_r(menu_get_item(variable_get("site_frontpage")));' |
This file contains 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
<?php | |
/** | |
* Implements hook_menu_alter(). | |
*/ | |
function my_menu_alter(&$items) { | |
$items['contact']['title'] = 'Contact Me'; | |
} |
This file contains 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
From 4800290372e085a4d26bf961f19d27eb6bef9805 Mon Sep 17 00:00:00 2001 | |
From: A User <a.user@example.com> | |
Date: Sun, 14 Jun 2015 22:05:23 +1000 | |
Subject: [PATCH] Add label for 'old' entity to the diff data | |
--- | |
modules/deploy_services/deploy_services.services.inc | 1 + | |
1 file changed, 1 insertion(+) | |
diff --git a/modules/deploy_services/deploy_services.services.inc b/modules/deploy_services/deploy_services.services.inc |
This file contains 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
# | |
# Global .gitignore file. | |
# | |
# Created by Dave Hall (@skwashd) - http://davehall.com.au | |
# | |
# See https://help.github.com/articles/ignoring-files/#create-a-global-gitignore for installation instructions. | |
# | |
# Licensed under the terms of the WTFPL - http://www.wtfpl.net/txt/copying/ | |
# |
This file contains 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
#!/bin/bash | |
# | |
# Add all of your Drupal nodes to the search index. | |
# | |
# NOTE: | |
# * This should work when you have around 10 000 nodes. | |
# * I assume you have set search to add 500 nodes per cron run. | |
# * There are better ways of doing this, but it does the job. | |
# |
OlderNewer