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 | |
/** | |
* returns a array for use with #options in a form field | |
* */ | |
function taxonomy_options_array($machine_name, $all = NULL) { | |
$v = taxonomy_vocabulary_machine_name_load($machine_name); | |
if (!empty($all)) { | |
$options[$all[0]] = $all[1]; | |
} |
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
#/usr/bin/env bash | |
JENKINS_HOME=/var/lib/jenkins | |
cd $JENKINS_HOME | |
git add *.xml jobs/*/config.xml users/*/config.xml userContent/* | |
CHANGES_TO_BE_COMMITTED=$(git status | grep "^# Changes to be committed:" | wc -l) | |
if [ $CHANGES_TO_BE_COMMITTED -eq 0 ]; then | |
echo "Nothing to commit" |
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
# The following ignores... | |
# Miscellaneous Hudson litter | |
*.log | |
*.tmp | |
*.old | |
*.bak | |
*.jar | |
*.json | |
# Linux user files |
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 | |
* Demo module, Basic Ajax form submit (Ajax framework). | |
*/ | |
/** | |
* Implements hook_menu(). | |
*/ |
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
## Here's the way to have Nginx return a robots.txt file that disallows all crawling by bots. | |
## This is useful for development and private sites. | |
location = /robots.txt { | |
return 200 "User-agent: *\nDisallow: /\n"; | |
} |
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 | |
* Tests for clientproject. | |
*/ | |
class clientProjectFeatureTestCase extends DrupalWebTestCase { | |
/** | |
* getInfo() returns properties that are displayed in the test selection form. |
NewerOlder