You are here


Rename Drupal Module/Feature via CLI

Have you ever created a Drupal module (or Feature) only to later realize that the name you've given it needs to be changed?

Not to worry, a couple of quick one-liners will solve this problem easily.

First, change the directory name of your old module.

mv old_module new_module

Move into the newly renamed directory.

Submitted by brant on Thu, 01/24/2013 - 17:09

Headless Browser Testing for Drupal using Zombie.js

An alternative to using Drupal to replicate and test itself with SimpleTest: One could employ a third-party to test a "living" Drupal environment.

Zombie.js provides a headless browser that can inspect the contents of a page, return assertions, process events and test for errors. It does all of this very quickly. Zombie can be installed using Homebrew (OSX) or through apt-get. Tests are written in Javascript (or Coffeescript) and they can be triggered server-side by through CI systems.

Submitted by brant on Tue, 11/27/2012 - 17:32

Add a LIKE operator to Views Exposed Filters?

A problem I ran into with Views involved implementing an exposed filter in a block that acted like a search. It was easy enough to filter a list of users based on a specific field. In my case, this field was just a taxonomy term reference to a vocabulary. Out of the box, the filter definitely worked if you knew the exact name of the term you were looking for. It even provided an autocomplete to help you out here. However, Views only provided a limited number of operations for these filters.

Submitted by brant on Fri, 08/17/2012 - 18:53
Subscribe to RSS - drupal