Jake's blog posts Nic's blog posts Jamey's blog posts David's blog posts

Archive for the 'Drupal' Category

jake

Disabling all Drupal CSS files

by jake ~ December 15th, 2008. Filed under: Drupal.

We needed to disable all of Drupal’s CSS files from our theme. Here’s how we did it:

function THEMENAME_preprocess(&$variables) {

  // Get rid of all of Drupal’s CSS files
  $css = drupal_add_css();
  foreach ($css['all']['module'] as $file => $status) {
    if (!strstr($file, ‘modules/MYMODULE’)) {
      unset($css['all']['module'][$file]);
    }
  }
  $variables['styles'] = drupal_get_css($css);

We also wanted (no *real* need) to use [...]

jake

Using less Drupal

by jake ~ September 11th, 2008. Filed under: Drupal, Technology.

Lately, I’ve had various frustrations with Drupal which have moved me away from using it for various things. I’d like to go through where I’ve moved away from Drupal, why I’ve made those changes, and my future Drupal decisions.
Wordpress rather than Drupal blog
To begin with, this blog is now on Wordpress rather than Drupal - [...]

jake

Debug live errors more easily with debug_backtrace() output in error messages

by jake ~ November 15th, 2006. Filed under: Drupal.

Tailing my error log, I kept coming across annoying errors like this:

[Mon Nov 13 21:14:49 2006] [error] [client xx.xxx.xxx.xxx] PHP Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /path/to/drupal/includes/database.mysql.inc on line 350, referer: http://www.example.com/node/1234/edit

No matter how hard I tried, I couldn’t reproduce the errors locally, but somehow real users could create [...]

jake

Drupal Community Yearbook

by jake ~ November 13th, 2006. Filed under: Drupal.

In our effort to give something back to Drupal (the fantastic open source content management framework at the core of AllYearbooks), we’re aiming to make a physical yearbook for members of the worldwide Drupal community.
Presuming all goes to plan and enough people join, the idea is to produce physical copies of the yearbook (as well [...]