Skip to content

Instantly share code, notes, and snippets.

View moonray's full-sized avatar

Bala Bosch moonray

  • Alachua, FL, USA
View GitHub Profile
diff --git skinr.module skinr.module
index 5fd8418..97d2ead 100644
--- skinr.module
+++ skinr.module
@@ -425,7 +425,12 @@ function skinr_rule_visible($rid) {
*/
function skinr_module_load_all_includes() {
foreach (skinr_get_module_apis() as $module => $info) {
- module_load_include('skinr.inc', $module);
+ if (function_exists('drupal_get_path')) {
@moonray
moonray / skins.inc.php
Created October 29, 2010 20:17
A skinr include.
<?php
/**
* Implements hook_skinr_info().
*
* Define the API version of skin(s). This is required when creating a new skin.
* The theme or module version
*
* The "hook" prefix is substituted with the name of the module or theme that
* implements it, e.g. THEMENAME_PLUGINNAME_skinr_info(), or
@moonray
moonray / .bash_profile
Created October 29, 2010 18:29
p and d functions to use in .bash_profile
function p {
wget -O tmp.patch $1; patch -p0 < tmp.patch; d tmp.patch;
}
function d {
# cvs diff -upNF^f . > $1.patch
git diff --no-prefix HEAD . > $1.patch;
# Clean up to avoid possible issues.
rm -f $1.tmp.patch