Skip to content

Instantly share code, notes, and snippets.


wesruv wesruv

View GitHub Profile
jdillick / aliases.drushrc.php
Last active Dec 24, 2015
Dynamic drush aliases. Just modify $paths to include the directory to your drupal installs, and you have instant aliases.
View aliases.drushrc.php
// the current environment
$env = $_ENV['ENVTYPE'] ? $_ENV['ENVTYPE'] : '';
// paths to search for drupal sites
$paths = array(
naxoc / pre-commit
Created Nov 26, 2012
Drupal git commit hook
View pre-commit
* @file
* This is a Git pre-commit hook that informs you when you are
* about to commit whitespace or a debug function.
$red = "\033[1;31m";
$red_end = "\033[0m";
JustAdam / drupal_taxonomy_content_type.php
Created Aug 2, 2012
Drupal 7 - Programmatically create a taxonomy and attach a field to it, then create a content type and attach that taxonomy to it.
View drupal_taxonomy_content_type.php
// Machine name for our custom node
define('NODE_NAME', 'the_node_machine_name');
// Machine name for our custom taxonomy
define('TAXONOMY_NAME', 'the_taxonomy_machine_name');
function module_install() {
You can’t perform that action at this time.