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
$fields = array( | |
'item_id', | |
'revision_id', | |
// Dodos los campos. | |
); | |
$values = array( | |
'1', | |
'1', | |
// Todos los campos. | |
); |
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.remote_host=172.17.0.1 | |
PHP_IDE_CONFIG="serverName=XXXXXXX" | |
export XDEBUG_CONFIG="idekey=PHPSTORM" |
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_views_post_execute. | |
*/ | |
function points_of_sale_feature_views_post_execute(&$view){ | |
if ($view->name == 'points_of_sale') { | |
switch ($view->current_display){ | |
case 'where_to_buy_page': | |
// Put LOSAN Points of sale on the top of the list. | |
$temp_result = array(); | |
foreach ($view->result as $key => $item){ |
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 | |
/** | |
* File mymodule.drush.inc.php | |
**/ | |
/** | |
* Implementation of hook_drush_command(). | |
*/ | |
function mymodule_drush_command() { | |
$items['mymodule-action'] = array( | |
'description' => 'Your pretty description to show on drush help', |
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
SITES=$(drush sa | grep \.pro) | |
for site in $(echo $SITES) | |
do | |
echo ------------------ $site ------------------------- | |
drush $site status --fields=drupal-version | |
DRUPAL_PATH = echo $site status --fields=root | cut -d':' -f 2 | |
drush $site ssh "cd $DRUPAL_PATH && git status" | |
drush $site drupalgeddon-test | |
done |
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
#!/bin/sh | |
DATE=$(date +%Y-%m-%d) | |
cd /var/www/campusabbvie/httpdocs/ | |
drush cc all | |
drush archive-dump --destination=/root/drush-backups/backup-1.tar.gz --tar-options="--exclude=%files/styles/*" --overwrite | |
mv /root/drush-backups/backup-1.tar.gz /root/drush-backups/day_$DATE.abbvie.tar.gz | |
s3cmd put /root/drush-backups/day_$DATE.abbvie.tar.gz s3://aspgemsdrupalbackups/day/day_$DATE.abbvie.tar.gz | |
rm /root/drush-backups/day_$DATE.abbvie.tar.gz |