Articles

Our developers love sharing their knowledge usually acquired from issues they had to face and solve. We share this knowledge, hoping to help anyone who faces the same or similar issues.

by Jitesh Doshi || November 5th, 2011 I wrote a module that generates PDF and attaches it to an email using hook_mail_alter(). It took me a while to figure out that I cannot add the attachment simply as a string in memory. I had to write it to a temp file first. And then my hook_mail_alter() implementation...
read more
by Jitesh Doshi || October 7th, 2011 You probably already know how to do URL rewriting using Apache. Here's how you can rewrite paths within Drupal. Added a function named "custom_url_rewrite_inbound" to your settings.php file. function custom_url_rewrite_inbound(&$result, $path, $path_language) { // convert u/xyz to user/xyz/edit // $result = preg_replace('/^u\/(.*)/', 'user/${1}/edit', $path); // convert u/xyz to user/xyz/view $result...
read more
by Pramod Jain || April 14th, 2011 I had a need to add simple payment processing to a Drupal website; I did not want to use Ubercart or any other eCommerce modules, or CiviCRM. Here were my basic requirements: Users register for a course using a web form page After registration user is taken to a payment...
read more
by Jitesh Doshi || March 17th, 2011 We have often been asked for examples of high traffic sites that run Drupal. This is an attempt to create a running list of commercial websites. Al Jazeera. As one would expect, the democracy movement in the middle-east caused a huge spike in volume. Drupal on Acquia cloud was able...
read more
by Jitesh Doshi || March 12th, 2011 Drupal 6 is very good. But Drupal 7 is even better. Much cleaner user interface (UI), and much cleaner application programming interface (API) as well. Today, I'm going to talk about Colobox integration in Drupal 7. With Colorbox in D7, you can show your attached images in a very user-friendly...
read more
by Jitesh Doshi || March 11th, 2011 In Drupal webforms, often we come across situations where we have select component (displayed as select list, radio buttons or checkboxes) in a webform, but we don't want multiple submissions to use the same options. For example, when people are reserving seats for themselves using your webform, you don't want...
read more