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
git clone <REPO> . | |
git submodule update --init |
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
drush up - update all modules and core | |
drush up drupal | |
drush up views, cck | |
drush updb - run update.php | |
drush cron - run cron | |
drush cc all - clear all cache | |
drush pml --status=enabled - show enabled modules | |
drush dre | |
drush vdel -y --exact maintenance_mode - online in drupal 6 | |
drush archive-dump default --destination=/var/backups/fullsite.tar - backup all site |
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
(function ($) { | |
Drupal.behaviors.forExample = { | |
attach: function (context, settings) { | |
} | |
}; | |
})(jQuery); |
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
ctools_include('ajax'); | |
ctools_include('modal'); | |
ctools_modal_add_js(); | |
$custom_style = array( | |
'espn-style' => array( | |
'modalSize' => array( | |
'type' => 'fixed', | |
'width' => 850, | |
'height' => 525, |
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
$headers = apache_request_headers(); | |
$headers1 = ''; | |
foreach ($headers as $header => $value) { | |
$headers1 .= "$header: $value <br />\n"; | |
} | |
$file = 'public://headers.txt'; | |
file_put_contents($file, $headers1); |
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
[Xdebug] | |
zend_extension="%sprogdir%/modules/php/%phpdriver%/ext/php_xdebug.dll" | |
xdebug.auto_trace = 0 | |
;xdebug.collect_includes = 1 | |
;xdebug.collect_params = 0 | |
;xdebug.collect_return = 0 | |
;xdebug.collect_vars = 0 | |
xdebug.default_enable = 0 | |
;xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD |