Skip to content

Instantly share code, notes, and snippets.

@justin-endler
justin-endler / endler-d7-feature-branch.sh
Created December 10, 2012 14:46
Sets up Drupal 7 local and remote feature branch.
#!/bin/bash
#
# Sets up a local Drupal 7 environment for working on a feature branch.
#
# @author Justin Endler
#
defaultsettings="http://drupalcode.org/project/drupal.git/blob_plain/HEAD:/sites/default/default.settings.php"
echo -e "\nThis script is D7-specific."
@justin-endler
justin-endler / endler-register-custom-view-tpl.php
Last active October 13, 2015 17:57
Register custom view templates from a module in Drupal 7.
<?php
/**
* Implements hook_theme().
*
* Drupal 7 view template-ing from a module.
*
* @author Justin Endler
*/
function mymodule_theme($existing, $type, $theme, $path) {
$module_path = drupal_get_path('module', 'mymodule');