Category Archives: Drupal

Drupal 6: Redirecting the User Destination After Registration

Scenario: An unregistered user visits a page that only logged in users can visit. Say it’s this page: http://www.your-site.com/protected/page Drupal throws up the login form, but the URL above remains the same – good as we’re going to use that. … Continue reading

Posted in Drupal | Leave a comment

Tweaking Drupal Date-Popup Format in an Exposed View

* Note this entry only pertains to the Date-Popup boxes when used in a Views filter, not a regular node-based form. Today I needed to change the format of the date-popup box on an exposed views filter. It normally defaults … Continue reading

Posted in Drupal | 1 Comment

Trouble Installing PECL’s uploadprogress On OS X – MAMP?

Note – this assumes you are running MAMP on a Mac. For this I’m using Leopard 10.5.8. All you want to do is get this installed so you can have fancy upload bars in your Drupal 7 installation. So you … Continue reading

Posted in Drupal, OS X, PHP | Leave a comment

Fix: Drupal Site Redirects to p3p0.com

I recently helped a client fix a particularly sneaky site hack. While this pertains to Drupal – similar attacks have been reported in Joomla, or any other PHP based site. The fix here may help still – you’ll just need … Continue reading

Posted in Drupal, PHP | Leave a comment

Drupal – Select List “default_value”

After beating my head against the desk the past hour, I finally figured out that to set a default value on a plain select list, you need to use “#value” and not “#default_value”. So, for example, say I have an … Continue reading

Posted in Drupal | 10 Comments

Drupal: Redirecting a User After Login

This has me beating my head on the desk a bit. I’m coding up a Drupal 6 module, and wanted to redirect the user after logging in, depending on what role they belong to. In this example, let’s say I … Continue reading

Posted in Drupal | 8 Comments