function course_action_info in Course 6
Same name and namespace in other branches
- 7.2 course.module \course_action_info()
- 7 course.module \course_action_info()
Implements hook_action_info().
File
- ./
course.module, line 1823 - course.module Core functionality for Courses.
Code
function course_action_info() {
$actions = array();
$actions['course_add_enrollment_action'] = array(
'type' => 'user',
'description' => t('Enroll user in current course'),
'configurable' => FALSE,
);
$actions['course_edit_enrollment_action'] = array(
'type' => 'course_enrolment',
'description' => t('Edit enrollment'),
'configurable' => TRUE,
);
$actions['course_remove_enrollment_action'] = array(
'type' => 'course_enrolment',
'description' => t('Remove a user from current course'),
'configurable' => FALSE,
);
return $actions;
}