Drupal 7

May
04
1

There isn't really an out-of-the-box solution for gift certificates in Drupal Commerce; there's no module (at time of writing) you can simply download, enable and forget about. Being Drupal, there are many ways to skin a cat, so to speak, so in this post I'm going to outline how I got them working on a site I built.

 
Sep
04
0

Drupal 7’s block module can be a little limited in its permissions; “Administer Blocks” is a rather sweeping capability, and often it’s useful to be able to make it that bit more granular.

 
Aug
17
0

As has been commented elsewhere, when you’re programmatically inserting data the most reliable way of doing so is often to simulate form submission – that way, any validation rules are applied and other modules have a chance to intercept the submission to do what they need to with the data.

This was achieved using the function drupal_execute:

 
Aug
16
7

One of the nice, lesser-known features of Drupal 7 is the ability to use additional databases and switch at ease. This might be useful for external databases, or if you have another database in an alternative format – perhaps you have an SQLite database that for performance reasons, you don’t wish to migrate. (Yes, Drupal 7 now supports SQLite!)

The configuration can be a little confusing at first, so let’s look at a settings.php file set up to use two databases: drupal on Localhost, and db2 situated at db.example.com.

 

About Me

Lukas White, LAMP Developer Manchester

I'm a web developer based in Manchester, England. I also design websites.  I generally favour open-source technologies such as PHP, MySQL and JQuery, and I have extensive experience using Drupal.

Read more »

Recent Comments

2 days 10 hours ago Anonymous commented on Gift Certificates in Drupal Commerce:

I am using the steps which you are given...
1) created a line item type "Gift Certificate...

Read more...
1 week 1 day ago tabernario commented on Using an Additional Database in Drupal 7:

Thank you. I've spent a lot of time trying to conect to a civicrm database.

Perfect...

Read more...
2 weeks 5 hours ago Anonymous commented on Using an Additional Database in Drupal 7:

Hi
I have small issue coming when i was migrate drupal 6 to drupal 7 site..
My...

Read more...