You are here

function course_action_info in Course 7.2

Same name and namespace in other branches
  1. 6 course.module \course_action_info()
  2. 7 course.module \course_action_info()

Implements hook_action_info().

File

./course.module, line 1901
course.module Core functionality for Courses.

Code

function course_action_info() {
  $actions = array();
  $actions['course_add_enrollment_action'] = array(
    'type' => 'user',
    'label' => t('Enroll user'),
    'configurable' => FALSE,
    'vbo_configurable' => FALSE,
  );
  $actions['course_edit_enrollment_action'] = array(
    'type' => 'course_enrollment',
    'label' => t('Edit enrollment'),
    'configurable' => FALSE,
    'vbo_configurable' => TRUE,
  );

  // Deprecated - do not use.
  $actions['course_remove_enrollment_action'] = array(
    'type' => 'course_enrollment',
    'label' => t('Remove enrollment'),
    'configurable' => FALSE,
    'vbo_configurable' => FALSE,
    'behavior' => array(
      '',
    ),
  );
  return $actions;
}