Skip to main content
Start of main content.

Our blog

Welcome to our growing knowledge base.

Upgrade array syntax the automatic way

This post covers upgrading from using the old array syntax to php 5.4 short array syntax using an automatic tool built with Pharborist. Phaborist is a PHP library to query and transform PHP source code via abstract syntax tree operations.  The result is more robust and shorter then the alternative of using tokens from token_get_all.

Senior Drupal Developer

A DOM for PHP

PHP provides the function token_get_all() for working with PHP source code, however it is too low level and requires a lot of work to extract information about the source code. In this article, it shows why token_get_all() is inadequate and introduces a higher level approach using Pharborist to working with source code.

Senior Drupal Developer

Isolate your Drupal sites with Docker and Puppet.

I recently spoke at the Drupal Melbourne meetup about running Puppet and Docker to improve isolation when running multiple sites on the one host. It's alot of work to get setup properly for a remote speaker so I would like to thank the organisers for allowing me to present.

Object-oriented page callbacks for Drupal 7

In Drupal we use object-oriented page and form callbacks to ease our programmning burden This is a nice improvement that allows us to encapsulate the functionality of one or many page callbacks into objects, with all the benefits that brings. Is it possible for us to us object-oriented page callbacks in Drupal 7? With a few tricks, yes it is. This article shows you how.

This is part of a continuing series of using Drupal 8 programming techniques in Drupal 7.

Drupal consultant

Drupal 8 Now: PSR-0 code in Drupal 7

Drupal 8 embraces modern PHP with all the trimmings, shedding the baggage of supporting earlier PHP versions and embracing the new object-oriented features.

One such feature is namespaced objects and the PSR-0 standard for autoloader compatability.

But if you know your project will run on a recent version of PHP, there's no reason you can't write your custom modules using PSR-0 now, in Drupal 7

Embedding Responsive iframes in your Drupal site

Implementing iframe elements can be troublesome for both content editors and developers, that's even before trying to make them responsive. After some recent project work I'm here to tell you there is an easy way to handle them.

Come sprint with us on Drupal 8 Contrib at Drupal South

Friday February 14th is the DrupalSouth Code Sprint, and PreviousNext are descending en masse to Wellington, New Zealand, to participate.

As a team we've been discussing what we'd like to sprint on. We've collectively agreed that the sprint would be an opportune time to work on porting some of our favourite contrib modules to Drupal 8.

Read on to find out our plans and how you can get involved.