Finally! Drupal 7 Views Cookbook has been fully revised and is currently undergoing technical testing and editing. There will be a special offer for those who purchased the original. Stay tuned!

There are times when the connection to your Drupal DB will need to be via ssl, such as when using an external DB service like clearDB. How do you accomplish this with regards to the settings.php file?

Simple.

Add the following to your database array:

      'pdo' => array (

            PDO::MYSQL_ATTR_SSL_CERT => 'path-to-cert.pem',

            PDO::MYSQL_ATTR_SSL_KEY => 'path-to-key.pem',

            PDO::MYSQL_ATTR_SSL_CA => 'path-to-ca.pem',

There are times when you create an array based on a stream of incoming data, and in doing so, are blissfully (or not) ignorant of the keys. How do you get the first member from the array in that case?

Tags: 

To be, or not to be, that is the question. Shakespeare never quite gets around to answering it, though. In Drupal 7, a similar existential question arises regarding entity references: Is it, or is it empty? Unlike Will, we can answer this question.

I had an issue recently, where I was using a selector to add menu tabs to the edge of the content area. Getting them to appear wasn't the issue. Getting them NOT to appear on admin overlays was.

Pages

Subscribe to The Accidental Coder RSS
©2005-2017 Ayen Designs. Underlying theme by Kiwi Themes.