Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This is a rough WIP prototype of a recipe feature, using configuration for as much functionality as possible. Let me know if you are interested in collaborating on this.
Twig is a very powerful text filtering system which has features not available in current drupal text filting systems. Twig gives the power of a basic programming language with conditional blocks and looping and well as many other features.
Download the Twig library from the Twig home page.
Unpack the library into the sites/all/libraries/twig directory so the AutoLoader.php is in the page sites/all/libraries/twig/lib/Twig/AutoLoader.php
Using Twig filter
Rules
To your rules add the Trig Filter to your rules. Add the template text to the Action and set the variable to be provided. Then in the next action you will be able to pass the variable created to any proceeding action.
Caching
Twig has a very comprehensive caching system which can dramitcally increase the speed of processing. To enable this add the following to your settings.php
Removes EXIF metadata from uploaded images. In future versions I hope to have options to allow either the system or an individual user (with proper permissions) to re-add geotags to the image.