Index: uc_node_access.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/uc_node_access/uc_node_access.module,v retrieving revision 1.1.4.3 diff -u -r1.1.4.3 uc_node_access.module --- uc_node_access.module 7 Jan 2009 18:32:51 -0000 1.1.4.3 +++ uc_node_access.module 7 Apr 2009 13:33:45 -0000 @@ -548,6 +548,38 @@ ), ); + $predicates['uc_node_access_renewal'] = array( + '#title' => t('Renew purchased nodes'), + '#description' => t('Renew purchased nodes if the order status matches.'), + '#class' => 'renewal', + '#trigger' => 'uc_order_status_update', + '#status' => 1, + '#conditions' => array( + '#operator' => 'AND', + '#conditions' => array( + array( + '#name' => 'uc_order_status_condition', + '#title' => t('If the order status is completed.'), + '#argument_map' => array( + 'order' => 'updated_order', + ), + '#settings' => array( + 'order_status' => 'completed', + ), + ), + ), + ), + '#actions' => array( + array( + '#name' => 'uc_node_access_delay_access', + '#title' => t('Grant access to any nodes based on the products on the order.'), + '#argument_map' => array( + 'order' => 'order', + ), + ), + ), + ); + return $predicates; }