Drupal-Planet
How to programmatically load panel pages from the database and include panel pages stored in code using Drupal 7
patrick — Tue, 09/23/2014 - 16:36
After hours of munging through ctools and page manager module code I figured out how to load enabled panel pages programmatically in code.
Drupal 7, how to programmatically download files, optionally save them as managed files, save them to a node, and create directories at the same time!
patrick — Thu, 08/22/2013 - 16:31
UPDATE:
Based on some comments below, I have updated the function with a sligtly more drupalesck approach. Thanks for the comments!
The previous version of this function had a bug where it would create a directory called public:/ in your webroot directory. Watch out, that being there can cause file upload problems. Make sure you delete that directory.
Recent Project: Converting the BMJ (British Medical Journal) to Drupal
patrick — Thu, 05/17/2012 - 10:57
Recently I had the privilege of being part of a team that converted the BMJ (British Medical Journal) to Drupal. The BMJ (British Medical Journal) is one of the world’s top five international peer reviewed medical journals with more than 1.5 million unique visitors and 6.8 million page views per month.You can read the about the project and it's success at http://drupal.org/node/1557636
How to Drupal 7, CDN Module, and Amazon Cloudfront in 10 minutes
patrick — Mon, 09/26/2011 - 10:43
Recently I decided to check out Amazon Cloudfront to use as a cdn. I had a delighted experience with it. It was so easy to setup with drupal and configured so easy in just a few steps.
Working with the file object in Drupal 7
patrick — Wed, 09/14/2011 - 21:09
Drupal can be mysterious in many ways sometimes. Tying to do the simplest things can become a complex series of function calls, that sometimes makes your head hurt tyring to remember everything. http://api.drupal.org can usually give you the answer you are looking for, if you know how to find it. Recently I had to figure out how to create a full path to a file from a file object uri and wanted to share this information.
How to install and setup New Relic on CentOS and RedHat to use with Drupal
patrick — Tue, 09/13/2011 - 17:23
New Relic is the all-in-one web application performance tool that lets you see performance from the end user experience down to the line of application code. Check out New Relic at http://newrelic.com/
Step 1: Setup repository and install packages
First become root
[pwaters@drupal-dev-pwaters ~]$ sudo su -
First you need to add New Relics repositries to your server
32 bit
How to setup Syntaxhighlighter to use with Ckeditor module in Drupal 6
patrick — Sun, 08/21/2011 - 22:25
After many hours of banging my head against the keyboard I finally have custom syntax highlighting with ckeditor in Drupal 6. When I first set out to add this feature I thought it would be as easy as trun a module on and your good to go. Turns out that isn't the case. I originally tried to use GeSHi
How to setup Eclipse with PHP PDT, Remote System Explorer, Theme Manager, and Drupal Plugins
patrick — Sun, 07/24/2011 - 21:55
Update...this configuration still works with Eclipse Juno.
We all know that Eclipse works great with java, but I have always wanted to use it with PHP and more importantly for developing with Drupal. I've tried so many times to get it to work in the past with something always not working right. I finally have figured out a nice smooth setup for using PHP, Eclipse, and Remote System Explorer, and Drupal. Also with an added bonus of the Theme Manager plugin.