@@ -22,7 +22,8 @@ if (!class_exists ('VmPlugin')) {
...
@@ -22,7 +22,8 @@ if (!class_exists ('VmPlugin')) {
}
}
// An example callback function to provide a custom function for shipping rules:
// An example callback function to provide a custom function for shipping rules:
functioncustom_test_function($args){
functioncustom_test_function($args,$rule){
JFactory::getApplication()->enqueueMessage(JText::sprintf("Evaluating function custom_test_function in rule '%s'",htmlentities($rule->rulestring)),'warning');
returncount($args);
returncount($args);
}
}
...
@@ -54,10 +55,12 @@ class plgVmShipmentRulesYOUR_PLUGIN_NAME extends VmPlugin {
...
@@ -54,10 +55,12 @@ class plgVmShipmentRulesYOUR_PLUGIN_NAME extends VmPlugin {
* The onVmShippingRulesRegisterCustomFunctions() trigger is expected to return an array of the form:
* The onVmShippingRulesRegisterCustomFunctions() trigger is expected to return an array of the form: