Details
-
Type: New Feature
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.4.5
-
Fix Version/s: 3.4.6
-
Component/s: CiviCRM API, Drupal Integration Modules
-
Labels:None
Description
To enable Drupal content administrators to embed dynamic CiviCRM content, we can implement a Drupal "filter" which evaluates Drupal nodes using CiviCRM's Smarty engine. Among other things, the Smarty engine includes a
{crmAPI}function which can be used to load data.
Some documentation about Drupal's filter system can be found at:
- D6: http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_filter/6
- D7: http://api.drupal.org/api/drupal/modules--filter--filter.api.php/function/hook_filter_info/7
Note that, much like CiviMail's Smarty support and Drupal's PHP support, this feature can impact a site's security posture; as with those features, this should not be enabled unless an administrator opts-in. Fortunately, Drupal's format/filter system already provides a means for enabling/disabling filters (which are generally disabled by default) and configuring RBAC.