Blog
-
Announcing the Drupal VM Generator
15th February 2016
For the past few weeks I’ve been working on a personal side project, based on Drupal VM. It’s called the Drupal VM Generator, and over the weekend I’ve added the final features and fixed the remaining issues, and tagged the 1.0.0 release.
Read more → -
Programmatically Load an Entityform in Drupal 7
22nd December 2015
I recently had my first experience using the Entityform module in a project. It was quite easy to configure with different form types, but then I needed to embed the form into an overlay. I was expecting to use the
drupal_get_form()
function and render it, but this didn’t work.Here are the steps that I took to be able to load, render and embed the form.
Read more → -
Automating Sculpin Builds with Jenkins CI
21st July 2015
As part of re-building this site with Sculpin, I wanted to automate the deployments, as in I wouldn't need to run a script like publish.sh locally and have that deploy my code onto my server. Not only did that mean that my local workflow was simpler (update, commit and push, …
Read more → -
Sculpin and Twig Resources
19th July 2015
Here’s a list of resources that I compiled whilst preparing for my Sculpin and Twig talk at DrupalCamp North.
Read more → -
Updating Forked Repositories on GitHub
18th June 2015
Sculpin People may or may not know, but this site runs on Sculpin, a PHP based static site generator (this may be the first time that I've mentioned it on this site). The source code is hosted on GitHub, and I've listed the site on the Community page on the Sculpin …
Read more → -
How to Define a Minimum Drupal Core Version
3rd April 2015
This week, my first code patch was committed to Drupal core. The patch adds the user_has_role() function to the user module, to simplify the way to check whether a user in Drupal has been assigned a specific role. This is something that I normally write a custom function for each …
Read more → -
2014
20th March 2015
A lot happened in 2014. Here are some of the main things that I'd like to highlight.
Read more → -
Configuring the Reroute Email Module
22nd December 2014
Reroute Email module uses
Read more →hook_mail_alter()
to prevent emails from being sent to users from non-production sites. It allows you to enter one or more email addresses that will receive the emails instead of delivering them to the original user. -
Include a Local Drupal Settings file for Environment Configuration and Overrides
20th December 2014
How to create and include a local settings file to define and override environment-specific variables, and keep sensitive things like your database credentials and API keys safe.
Read more → -
Include environment-specific settings files on Pantheon
27th November 2014
I was recently doing some work on a site hosted on Pantheon and came across an issue, for which part of the suggested fix was to ensure that the
$base_url
variable was explicitly defined within settings.php (this is also best practice on all Drupal sites).The way that was recommended was by using a
Read more →switch()
function based on Pantheon's environment variable. For example: