function course_uc_ca_predicate in Course 6
Implements hook_ca_predicate().
File
- modules/
course_uc/ course_uc.module, line 280
Code
function course_uc_ca_predicate() {
$configurations['course_uc_enrol_user_in_ordered_courses'] = array(
'#title' => t('Enroll user in ordered courses'),
'#class' => 'course',
'#trigger' => 'uc_order_status_update',
'#status' => 1,
'#conditions' => array(
'#operator' => 'OR',
'#conditions' => array(
array(
'#name' => 'uc_order_status_condition',
'#title' => t('If order is marked as completed'),
'#argument_map' => array(
'order' => 'updated_order',
),
'#settings' => array(
'order_status' => 'completed',
),
),
),
),
'#actions' => array(
array(
'#name' => 'course_uc_enrol_user_in_ordered_courses',
'#title' => t('Enroll user in ordered courses'),
'#argument_map' => array(
'order' => 'order',
),
'#settings' => array(),
),
),
);
return $configurations;
}