planet drupal

A Drupal autocomplete file for Sublime Text 2

After trying Sublime Text 2 for a day I’ve already fallen in love with its simple but elegant interface. I’m generally a fairly happy user of Komodo IDE but don’t really like is klunky interface and occasional crashes and its often slow response. What I do like about Komodo is its ability to scan through your project and provide autocomplete suggestions, something that Sublime Text 2 doesn’t do.

So I decided to write a script to fill some of this gap in Sublime Text 2. The script simply scans through a specified directory and creates a json formatted sublime-completions file from all the functions it finds.

Upgrading this site from Drupal 7 alpha 6 to beta 1

For some reason I wasn’t aware of there being no upgrade path between alpha version of Drupal. This makes total sense, the api and schema keeps changing a lot before the beta so extra time is needed to maintain the updgrade path and it would be better spent elsewhere. Unfortunately I had decided to create this site on Drupal 7 alpha 6 a little while back so when the beta came out a few days ago I decided to try to upgrade.

Using field level permissions to allow 'view in list' but not 'view full node' in Drupal

As Drupal’s view permission doesn’t differentiate between a view in a list (output by Views) and a full node view it can be hard to meet the requirements of some clients who want to ‘tease’ their users by showing lists of titles without giving full access to the node.

Stella Power wrote about one way to do this which made me write up my method in this blog post.

Subscribe to RSS - planet drupal