This module integrates Ubercart 2.x with the Rules module. This is useful if you look for a way to implement rules, which are more or less compatible with the version 3 of Ubercart or if you like to react on certain events in Ubercart. It is useful for example to send special information to the customer, when he has finish the order or if you like to upgrade the customer account to another role after the order is completed.
Webform Tokens provides tokens for user form submissions for forms created with the module Webform 3. This functionality is included in Webform 4, so this module is not needed. The tokens can then be used anywhere tokens are supported. The Token module is required to see what tokens are available.
Provides Library API access to the Underscore.js JavaScript library.
Features (7.x-2.x)
Makes Underscore.js available to other modules and custom code via the Library API
Provides a drush command (underscore-download) to download and install the latest version of the library
Usage (7.x-2.x)
After enabling this module, install the Underscore.js JavaScript file:
Without drush: Download underscore.js and store it in your libraries directory. In most cases the resulting path should be sites/all/libraries/underscore/underscore.js
With drush: Run the command drush underscore-download
In your module code, add the library with libraries_load() and drupal_add_library(). If unsure where, add it in an implementation of hook_init(). Use 'underscore' for both the module and library name arguments, like this:
You can update your version of Underscore.js to the latest version by calling the drush command (drush underscore-download).
Upgrading from 7.x-1.x to 7.x-2.x
The 7.x-2.x branch is a rewrite of the existing module. Upgrading to the 7.x-2.x branch will require changes to your code. Notable changes to the module include:
The actual Underscore.js JavaScript is no longer bundled with this module. It must be downloaded and installed manually or with the drush command provided in this module.
The Underscore.js library is no longer enabled automatically. To use it, your code must call libraries_load() and drupal_add_library(). An example is provided in the section above.
Now uses the library hooks provided by Libraries API module (rather than hook_library() from core).