Enabling Drupal Views
Sometimes it is convenient to display CiviCRM data through Drupal. For example, you might want to display a list of contacts without giving the user access to CiviCRM. You might also want to combine data from CiviCRM with data from Drupal. For example, you have collected custom data about your contacts stored in CiviCRM that you want to display on the Drupal user page.
How to do it…
The key to integrating CiviCRM data is to install the Drupal Views module and to give Drupal access to the CiviCRM database tables.
Download the Drupal Views module from http://drupal.org/project/views.
Install and enable the module in the normal way.
Navigate to Administer | System Settings | CMS Database integration. Here you will see a page of code that you need to put into the Drupal
settings.php
file.We have shortened this table for the illustration.
Copy the code.
Navigate to
sites/default/settings.php
. You may have to change permissions on thedefault directory
and on thesettings.php
...