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 drush | |
$result = db_query("SELECT id, data from field_config where type = 'field_collection'"); | |
foreach ($result as $field) { | |
$data = unserialize($field->data); | |
$data['indexes'] = array('revision_id' => array('revision_id')); | |
$data = serialize($data); | |
db_query("update field_config set data = :data where id = :id", array(':data' => $data, ':id'=> $field->id)); | |
} |
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 | |
function theme_facetapi_tabs_inactive($variables) { | |
unset($variables['count']); | |
return theme_link($variables); | |
} | |
function theme_preprocess_facetapi_link_inactive(&$variables) { | |
// hide facet count | |
unset($variables['count']); |
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 | |
/** | |
* Determine whether a given bootstrap phase has been completed | |
* | |
* This function name has a typo which makes me laugh so we choose not to | |
* fix it. Take a deep breath, and smile. See | |
* http://en.wikipedia.org/wiki/HTTP_referer | |
* | |
* | |
* @param phase |
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
drush zen --name="$Themename" --machine-name="$theme_machine_name" --path="sites/$site/themes/" --without-rtl |
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
drush rsync @project-remote:%files @project-local:%files | |
drush rsync @project-remote:%private @project-local:%private | |
drush sql-sync @project-remote @project-local |
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
sudo /etc/init.d/hosting-queued start |
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
drush rsync @project-local:%files @project-remote:%files | |
drush rsync @project-local:%private @project-remote:%private | |
drush sql-sync @project-local @project-remote |
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
# Normal patch. | |
git diff --staged 7.x-1.x > [project_name]-[short-description]-[issue-number]-[comment-number].patch | |
# Interdiff patch. | |
git diff --staged old_patch_branch > interdiff-[issue-number]-[old-patch-comment-number]-[comment-number].diff.txt |
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
diff -u <(drush @project-local pm-list --status=enabled) <(drush @project-remote pm-list --status=enabled) |
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
drush site-install standard --db-url='mysql://[db_user]:[db_pass]@localhost/[db_name]' --site-name=Example --sites-subdir=example.com --account-name=admin --account-pass=password [email protected] |
OlderNewer