git filter-branch --msg-filter 'sed -e "s/Issue #[0-9]*: //"'
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 | |
| /** | |
| * Implements hook_form_node_form_alter(). | |
| */ | |
| function mycustom_form_node_form_alter(&$form, &$form_state, $form_id) { | |
| // Ways of recognizing the node_add form. | |
| // By using the hook_form_node_form_alter() we do not have to check explicitely | |
| // in the form_id, as we already now, that we are on the node form by using the | |
| // specific hook_form_FORM_ID_alter(). |
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
| /** | |
| * @file | |
| * Example for a multithreaded worker with webworker-threads. | |
| * | |
| * @see https://npmjs.org/package/webworker-threads | |
| */ | |
| var Worker = require('webworker-threads').Worker; | |
| /** |
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 | |
| /** | |
| * Implements hook_ctools_plugin_api_alter(). | |
| */ | |
| function mymodule_ctools_plugin_api_alter() { | |
| // That is not nice, but we do not have a chance to get the api specific | |
| // module list otherwise. | |
| // @see https://drupal.org/node/2075885 |
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 | |
| /** | |
| * Implements hook_update_projects_alter(). | |
| */ | |
| function mymodule_update_projects_alter(&$projects) { | |
| // We use this hook to remove our features and custom modules from the update | |
| // info retrieval procedure. | |
| foreach ($projects as $key => $project) { | |
| list($prefix) = explode('_', $key); |
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
| echo "DB;$1"; | |
| PREFIX="my_db_prefix"; | |
| DB="$PREFIX$1" | |
| DBFILE="current.sql" | |
| DBUSER="root" | |
| DBPASSWORD="password" | |
| echo "DB: $DB from $DBFILE" |
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
| #!/bin/bash | |
| ################################################################################ | |
| # This script is for adjusting the staging branch to a specific branch content. | |
| # The resulting branch will likely not share the history with the given branch, | |
| # but will ensure all files are present in the same state as in the original | |
| # branch. | |
| # | |
| # This approach is needed to ensure we can use the a git based hosting with a | |
| # fixed branch, to rollout and test multiple different branches. In that case |
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
| # Navigate to our docroot so we can execute the drupal drush commands | |
| cd ../docroot | |
| # Make sure files and classes are correctly registered, even if we moved them | |
| # in another directory. | |
| drush registry-rebuild | |
| # Enable maintenance mode. | |
| drush vset maintenance_mode 1 |
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
| <div class="wrapper"> | |
| <div class="content"> | |
| <p> | |
| Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | |
| </p> | |
| </div> | |
| <div class="bottomic">Downloads & publications</div> | |
| </div> | |
| <div class="wrapper"> |