You are here

function course_signup_views_data in Course 7.2

Same name and namespace in other branches
  1. 7 modules/course_signup/course_signup.views.inc \course_signup_views_data()

File

modules/course_signup/course_signup.views.inc, line 22

Code

function course_signup_views_data() {
  $data = array();
  $data['signup_log']['course_enrollment'] = array(
    'title' => 'Course enrollment',
    'relationship' => array(
      'base' => 'course_enrollment',
      'handler' => 'course_views_handler_relationship_sl_ce',
      'label' => t('Enrollment'),
      'help' => 'Create a relationship from the signup log to the course enrollment data.',
    ),
  );
  $data['course_enrollment']['signup_log'] = array(
    'title' => 'Signup',
    'relationship' => array(
      'base' => 'signup_log',
      'handler' => 'course_views_handler_relationship_ce_sl',
      'label' => t('Signup'),
      'help' => 'Create a relationship from the course enrollment to the signup.',
    ),
  );
  return $data;
}