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
<IfModule dir_module> | |
DirectoryIndex index.php index.html | |
</IfModule> |
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
ScriptAlias /local-bin /usr/bin | |
AddHandler application/x-httpd-php5 php | |
Action application/x-httpd-php5 /local-bin/php-cgi |
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
- sudo apt-get install apache2 php5-cgi | |
- sudo a2enmod actions | |
- sudo a2enmod rewrite | |
- echo "export PATH=/home/vagrant/.phpenv/bin:$PATH" | sudo tee -a /etc/apache2/envvars > /dev/null | |
- echo "$(curl -fsSL https://gist.github.com/raw/7d3f066f33816cc1cdf2/c1f827dc4ad5388e5e84bae813292dda45d1bc1e/gistfile1.txt)" | sudo tee /etc/apache2/conf.d/phpconfig > /dev/null | |
- echo "$(curl -fsSL https://gist.github.com/raw/ddd37eb98c65b78a54c5/ce7d03a39a9730908b4ea0481c27fe518b58bf6c/gistfile1.txt)" | sed -e "s,PATH,/home/travis/drupal,g" | sudo tee /etc/apache2/sites-available/default > /dev/null | |
- echo "$(curl -fsSL https://gist.github.com/raw/4466898/c1e72e82c9af18c7bb54d86cb425aa1b3a55f59f/gistfile1.txt)" | sudo tee /etc/apache2/conf.d/php-cgi.conf > /dev/null | |
- sudo service apache2 restart |
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
// Send back the XML. | |
drupal_add_http_header('Content-Type', 'application/xml; charset=utf-8'); | |
print $return; | |
drupal_exit(); |
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
$permissions = array( | |
'access resource node', | |
); | |
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, $permissions); |
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
/** | |
* Implements hook_ctools_plugin_directory(). | |
*/ | |
function vud_ctools_plugin_directory($module, $type) { | |
// Safety: go away if CTools is not at an appropriate version. | |
if (!module_invoke('ctools', 'api_version', VUD_REQUIRED_CTOOLS_API)) { | |
return; | |
} | |
if ($module == 'vud' && $type == 'widgets') { | |
return 'widgets'; |
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:void((function(d)%7Bif(self!%3Dtop%7C%7Cd.getElementById(%27toolbar%27)%26%26d.getElementById(%27toolbar%27).getAttribute(%27data-resizer%27))return%20false%3Bd.write(%27%3C!DOCTYPE%20HTML%3E%3Chtml%20style%3D%22opacity:0%3B%22%3E%3Chead%3E%3Cmeta%20charset%3D%22utf-8%22/%3E%3C/head%3E%3Cbody%3E%3Ca%20data-viewport%3D%22320x480%22%20data-icon%3D%22mobile%22%3EMobile%20(e.g.%20Apple%20iPhone)%3C/a%3E%3Ca%20data-viewport%3D%22320x568%22%20data-icon%3D%22mobile%22%20data-version%3D%225%22%3EApple%20iPhone%205%3C/a%3E%3Ca%20data-viewport%3D%22600x800%22%20data-icon%3D%22small-tablet%22%3ESmall%20Tablet%3C/a%3E%3Ca%20data-viewport%3D%22768x1024%22%20data-icon%3D%22tablet%22%3ETablet%20(e.g.%20Apple%20iPad%202-3rd,%20mini)%3C/a%3E%3Ca%20data-viewport%3D%221280x800%22%20data-icon%3D%22notebook%22%3EWidescreen%3C/a%3E%3Cscript%20src%3D%22http://lab.maltewassermann.com/viewport-resizer/resizer.min.js%22%3E%3C/script%3E%3C/body%3E%3C/html%3E%27)%7D)(document))%3B |
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
$vocabulary = (object) array( | |
'machine_name' => 'tags', | |
'name' => 'Tags', | |
'description' => $description, | |
'help' => $help, | |
); | |
taxonomy_vocabulary_save($vocabulary); |
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
'og_roles' => og_get_user_roles($og_context['group_type'], $og_context['gid']), |
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
projects[conditional_fields][subdir] = "contrib" | |
projects[conditional_fields][version] = "3.x-dev" | |
projects[conditional_fields][patch][] = "http://drupal.org/files/1916988-conditional-fields-alter-1.patch" |