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
; Basic Drush Make file | |
; See the Drush Make prject page for info: | |
; http://drupal.org/project/drush_make | |
; This file by Brock Boland [[email protected]] | |
; | |
; This file is also on GitHub: | |
; http://gist.github.com/404528 | |
; Core version | |
; ------------ |
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_form_alter(). | |
*/ | |
function filetest_form_alter(&$form, &$form_state, $form_id) { | |
switch ($form_id) { | |
case 'contact_mail_page': | |
// Need to set the enctype so the form will allow file uploads | |
$form['#attributes']['enctype'] = "multipart/form-data"; | |
$form['new_file'] = array( |
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
# Clone a drupal project | |
function drupalclone { | |
if [ -z "$1" ] | |
then | |
# No parameter passed, show usage | |
echo "Usage: drupalclone [project_name]" | |
else | |
# Clone the project | |
git clone http://git.drupal.org/project/$1.git | |
fi |
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 | |
if [ -z "$1" ]; then | |
echo "Usage: ./deploy drupal_version, for example: ./deploy 6" | |
else | |
versionname=d$1 | |
deploydir=~/src/templates/$versionname | |
sitesdir=$versionname.local | |
sitesfullpath=~/Sites/$sitesdir | |
dbname=dev_$versionname | |
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 | |
if [ -z "$1" ]; then | |
echo "Usage: ./recreate drupal_version, for example: ./recreate 6" | |
else | |
# Prep a bunch of vars | |
versionname=d$1 | |
deploydir=~/src/templates/$versionname | |
sitesdir=$versionname.local | |
sitesfullpath=~/Sites/$sitesdir | |
dbname=dev_$versionname |
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 | |
/** | |
* @file | |
* local.settings.php | |
* | |
* This settings file is intended to contain settings specific to a local | |
* development environment, by overriding options set in settings.php. | |
* | |
* Include this file from your regular settings.php by including this at the | |
* bottom: |
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
#!/usr/bin/php | |
<?php | |
// Make sure to set the Content dropdown to Shell Script in TextExpander | |
print file_get_contents('https://raw.github.com/gist/1633790/local.settings.php'); |
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
diff --git a/feeds_xpathparser.module b/feeds_xpathparser.module | |
index bb583ed..aca2470 100644 (file) | |
--- a/feeds_xpathparser.module | |
+++ b/feeds_xpathparser.module | |
@@ -10,7 +10,8 @@ function feeds_xpathparser_feeds_plugins() { | |
'description' => t('Parse HTML using XPath.'), | |
'handler' => array( | |
'parent' => 'FeedsParser', |
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
javascript: var D=550, A=450, C=screen.height, B=screen.width, H=Math.round((B/2)-(D/2)), G=0, F=document, t=encodeURIComponent(F.title), u=encodeURIComponent(F.location); if(C>A) {G=Math.round((C/2)-(A/2));} window.open('http://twitter.com/intent/tweet?text=' + t + '&url=' + u,'','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1'); |
OlderNewer