|
Drupal example source code file (uc_order.rules_defaults.inc)
The uc_order.rules_defaults.inc Drupal example source code
<?php
/**
* @file
* Default rules configurations.
*/
/**
* Implements hook_default_rules_configuration().
*/
function uc_order_default_rules_configuration() {
$rule = rules_reaction_rule();
$rule->label = t('E-mail an order update notification');
$rule->active = TRUE;
$rule->event('uc_order_status_email_update')
->condition(rules_condition('data_is', array('data:select' => 'order:order-status', 'value' => 'in_checkout'))->negate())
->action('uc_order_email', array(
'order:select' => 'order',
'from' => uc_store_email_from(),
'addresses' => '[uc_order:email]',
'subject' => t('Order #[uc_order:order-id] Update'),
'message' => uc_get_message('order_update_email'),
'format' => filter_default_format(),
));
$configs['uc_order_update_email_customer'] = $rule;
return $configs;
}
Other Drupal examples (source code examples)Here is a short list of links related to this Drupal uc_order.rules_defaults.inc source code file: |
"Drupal" is a registered trademark of Dries Buytaert.
our drupal tutorials and examples
Sponsored by:
Mat-Su Valley Programming (Wasilla and Palmer, Alaska)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.