This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
; ------------ |
NewerOlder