You are here

function course_uc_rules_action_info in Course 7

Same name and namespace in other branches
  1. 8.3 modules/course_uc/course_uc.module \course_uc_rules_action_info()
  2. 8.2 modules/course_uc/course_uc.module \course_uc_rules_action_info()
  3. 7.2 modules/course_uc/course_uc.module \course_uc_rules_action_info()
  4. 3.x modules/course_uc/course_uc.module \course_uc_rules_action_info()

Implements hook_rules_action_info().

File

modules/course_uc/course_uc.module, line 303

Code

function course_uc_rules_action_info() {
  $actions = array();
  $order_arg = array(
    'type' => 'uc_order',
    'label' => t('Order'),
  );
  $actions['course_uc_enroll_user_in_ordered_courses'] = array(
    'label' => t('Enroll user in ordered courses'),
    'group' => t('Order'),
    'parameter' => array(
      'order' => $order_arg,
    ),
  );
  return $actions;
}