For The Love Of The Content Editors
Pamela Barone presents her DrupalSouth Wellington talk at Jam's (virtual) DrupalCamp.
Welcome to our growing knowledge base.
Pamela Barone presents her DrupalSouth Wellington talk at Jam's (virtual) DrupalCamp.
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.
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.
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.
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 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
PreviousNext is excited to welcome long time member of the Drupal community, Donna Benjamin, to its permanent team as Director of Community Engagement.
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.