function course_uc_ca_action in Course 6
Implements hook_ca_action().
Add action to enrol a user in a course.
Return value
array
File
- modules/
course_uc/ course_uc.module, line 230
Code
function course_uc_ca_action() {
$arg = array(
'#entity' => 'uc_order',
'#title' => t('Order'),
);
$actions['course_uc_enrol_user_in_ordered_courses'] = array(
'#title' => t('Enroll user in course(s)'),
'#category' => t('Order'),
'#callback' => 'course_uc_enrol_user_in_ordered_courses',
'#arguments' => array(
'order' => $arg,
),
);
return $actions;
}