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
# Ignore configuration files that may contain sensitive information. | |
sites/*/*settings*.php | |
# Ignore paths that contain generated content. | |
cache/ | |
files/ | |
sites/*/files | |
sites/*/private | |
# Server configuration files |
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_drush_command(). | |
*/ | |
function custom_local_drush_command() { | |
$items['files-fix-permissions'] = array( | |
'description' => 'Fix file permissions', | |
'aliases' => array('ffp'), | |
); |
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
/* | |
* Add class and attributes from custom blocks | |
*/ | |
function phptemplate_preprocess_block(&$vars) { | |
if(isset($vars['block']->attributes)) { | |
if(isset($vars['block']->attributes['class'])) { | |
$vars['classes_array'] = array_merge($vars['classes_array'], $vars['block']->attributes['class']); | |
unset($vars['block']->attributes['class']); | |
} | |
if(!empty($vars['block']->attributes)) { |