Review Roundup

Tabletop Gaming News - 10 March 2018 - 11:00am
Ah, Saturday. The start of the weekend. For many of us here in the states, though, it’s an hour shorter. To be honest, I already went ahead and moved my clocks ahead an hour. It’s not like I’ve got anything other than this scheduled for the day. I mean, It’s Saturday! But I also need […]
Categories: Game Theory & Design

UUID Forward

New Drupal Modules - 10 March 2018 - 9:48am

Open an entity by entering its UUID in the path. For example, [site_url]/uuid/d5302522-cda6-4c3b-9400-e80ba5603636.

Categories: Drupal


New Drupal Modules - 10 March 2018 - 9:46am

This module changes all ckeditor text fields to respect the "rows" setting of the field. How rows translate into pixels is a global setting, configured via a pixel factor and offset.

This module originalted from core issue #2877527: Make CKEditor (approximately) reflect the rows setting of a field and may be obsoleted by going into core.

Have fun!

Categories: Drupal

Ige Filter

New Drupal Modules - 10 March 2018 - 5:41am

This is a text format filter module based on Scripture Filter. It converts Hungarian Bible references into clickable links pointing to online Bibles. This module works only with Hungarian references and it recognizes many usual book abbreviations and reference formats.

Categories: Drupal

Steam Login

New Drupal Modules - 10 March 2018 - 3:07am
Summary Introduction:

Steam Login allows users to connect to your website using their Steam account.

Categories: Drupal

Commerce Boxberry

New Drupal Modules - 10 March 2018 - 2:25am

Provides integration with popular Russian shipping service Boxberry's API using their standard PHP library.

It currently does not provide Commerce Shipping method but only tools for Commerce Orders submissions to Boxberry system and service points information updates.

Categories: Drupal

Commerce SDEK

New Drupal Modules - 10 March 2018 - 2:10am

Provides integration with popular Russian shipping service СДЕК API.

It currently does not provide Commerce Shipping method but only tools for Commerce Orders submissions to SDEK system and service points information updates.

Categories: Drupal

Available Updates to Slack

New Drupal Modules - 9 March 2018 - 6:37pm
Slack Update Notifier Description

An easy to use module that notifies you when there is an update to a module on Slack. It uses the plugin system to create Notification Types and posts to a Slack webhook when an update of the specified type is available.

Currently we support only Security Update notifications, please feel free to post other notification types.

Categories: Drupal

Oliver Davies: How to split a new Drupal contrib project from within another repository

Planet Drupal - 9 March 2018 - 4:00pm
Does it need to be part of the site repository?

An interesting thing to consider is, does it need to be a part of the site repository in the first place?

If from the beginning you intend to contribute the module, theme or distribution and it’s written as generic and re-usable from the start, then it could be created as a separate project on or as a private repository on your Git server from the beginning, and added as a dependency of the main project rather than part of it. It could already have the correct branch name and adhere to the release conventions and be managed as a separate project, then there is no later need to "clean it up" or split it from the main repo at all.

This is how I worked at the Drupal Association - with all of the modules needed for hosted on itself, and managed as a dependency of the site repository with Drush Make.

Whether this is a viable option or not will depend on your processes. For example, if your code needs to go through a peer review process before releasing it, then pushing it straight to would either complicate that process or bypass it completely. Pushing it to a separate private repository may depend on your team's level of familiarity with Composer, for example.

It does though avoid the “we’ll clean it up and contribute it later” scenario which probably happens less than people intend.

Create a new, empty repository

If the project is already in the site repo, this is probably the most common method - to create a new, empty repository for the new project, add everything to it and push it.

For example:

cd web/modules/custom/my_new_module # Create a new Git repository. git init # Add everything and make a new commit. git add -A . git commit -m 'Initial commit' # Rename the branch. git branch -m 8.x-1.x # Add the new remote and push everything. git remote add origin git push origin 8.x-1.x

There is a huge issue with this approach though - you now have only one single commit, and you’ve lost the commmit history!

This means that you lose the story and context of how the project was developed, and what decisions and changes were made during the lifetime of the project so far. Also, if multiple people developed it, now there is only one person being attributed - the one who made the single new commit.

Also, if I’m considering adding your module to my project, personally I’m less likely to do so if I only see one "initial commit". I’d like to see the activity from the days, weeks or months prior to it being released.

What this does allow though is to easily remove references to client names etc before pushing the code.

Use a subtree split

An alternative method is to use git-subtree, a Git command that "merges subtrees together and split repository into subtrees". In this scenario, we can use split to take a directory from within the site repo and split it into it’s own separate repository, keeping the commit history intact.

Here is the description for the split command from the Git project itself:

Extract a new, synthetic project history from the history of the subtree. The new history includes only the commits (including merges) that affected , and each of those commits now has the contents of at the root of the project instead of in a subdirectory. Thus, the newly created history is suitable for export as a separate git repository.

Note: This command needs to be run at the top level of the repository. Otherwise you will see an error like "You need to run this command from the toplevel of the working tree.".

To find the path to the top level, run git rev-parse --show-toplevel.

In order to do this, you need specify the prefix for the subtree (i.e. the directory that contains the project you’re splitting) as well as a name of a new branch that you want to split onto.

git subtree split --prefix web/modules/custom/my_new_module -b split_my_new_module

When complete, you should see a confirmation message showing the branch name and the commit SHA of the branch.

Created branch 'split_my_new_module' 7edcb4b1f4dc34fc3b636b498f4284c7d98c8e4a

If you run git branch, you should now be able to see the new branch, and if you run git log --oneline split_my_new_module, you should only see commits for that module.

If you do need to tidy up a particular commit to remove client references etc, change a commit message or squash some commits together, then you can do that by checking out the new branch, running an interactive rebase and making the required amends.

git checkout split_my_new_module git rebase -i --root

Once everything is in the desired state, you can use git push to push to the remote repo - specifying the repo URL, the local branch name and the remote branch name:

git push split_my_new_module:8.x-1.x

In this case, the new branch will be 8.x-1.x.

Here is a screenshot of example module that I’ve split and pushed to GitLab. Notice that there are multiple commits in the history, and each still attributed to it’s original author.

Also, as this is standard Git functionality, you can follow the same process to extract PHP libraries, Symfony bundles, WordPress plugins or anything else.

Categories: Drupal

Princes of the Apocalypse Module Now Available On Roll20

Tabletop Gaming News - 9 March 2018 - 3:00pm
I have friends all over the world. I’m sure most of you do, too. The Internet connects us with people from everywhere, instantly. But it’s kinda hard to bring in Henrix from Sweden or Halfi from Wales or Jyggdrasil from Kuala Lumpur for a gaming session. That’s where Roll20 comes in. They’ve teamed up with […]
Categories: Game Theory & Design

Null User

New Drupal Modules - 9 March 2018 - 2:56pm
Categories: Drupal

Queue order UI

New Drupal Modules - 9 March 2018 - 2:25pm

This is UI for Queue Order module.

Categories: Drupal

Alas Vegas RPG Now Available

Tabletop Gaming News - 9 March 2018 - 2:00pm
We all know of stories of Kickstarters that funded, but then the person behind it seems to vanish. Delivery dates are missed. Updates come slower and slower. Many backers write the product off as lost… Thankfully, that’s not the case with Alas Vegas. Despite having funded nearly 5 years ago, the game has been sent […]
Categories: Game Theory & Design

The Awful Orphanage Adds Alyce to Their Lineup of Miniatures

Tabletop Gaming News - 9 March 2018 - 1:00pm
One thing that sets Kickstarters apart from just buying a game regularly is the amount of exclusives and promos you can end up with. Some Kickstarters even throw in special extras if you join in early. That’s what they’re doing with The Awful Orphanage. Those that sign up within the first 24 hours will get […]
Categories: Game Theory & Design

Darkness Strategy Card Game Up On Kickstarter

Tabletop Gaming News - 9 March 2018 - 12:00pm
In a remote spot in Northern Europe, druids and witches are all looking to control a set of powerful artifacts. However, each of these items will only be wielded by a single master. Performing complex rituals, each druid or witch looks to prove they have what it takes to obtain these items. That’s what you’ll […]
Categories: Game Theory & Design

CDN Library API

New Drupal Modules - 9 March 2018 - 11:59am


Categories: Drupal

Stones Break Bones Card Game Up On Kickstarter

Tabletop Gaming News - 9 March 2018 - 11:00am
“Sticks and Stones may break my Bones, but words will leave me with regret and doubt about myself as an individual and a scarred psyche…” Whoah, that got dark fast… I think I need something a bit more light-hearted. At least the sticks bit is straight-forward, as is stones. Stones Break Bones. Oh, hey, that’s […]
Categories: Game Theory & Design

Knight Models Switches To Pre-Order Instead of Kickstarter

Tabletop Gaming News - 9 March 2018 - 10:59am
Usually, we’re all about telling you a new Kickstarter will be launching soon. And for Knight Model’s Harry Potter game, we’d done just that. However, we’re now here to tell you that the Kickstarter’s been cancelled. But the game hasn’t. Instead of a Kickstarter campaign, Knight Models is going directly to pre-orders starting next week […]
Categories: Game Theory & Design


New Drupal Modules - 9 March 2018 - 10:45am
Categories: Drupal

Toggle view display

New Drupal Modules - 9 March 2018 - 10:44am

Easily get list or grid results of the same view with this handy tool

Categories: Drupal


Subscribe to As If Productions aggregator