You are here

function course_enrollment_types in Course 7

Same name and namespace in other branches
  1. 7.2 course.module \course_enrollment_types()
2 calls to course_enrollment_types()
course_enrollment_type_load in ./course.module
course_field_attach_form in ./course.module
Implements hook_form_alter().
1 string reference to 'course_enrollment_types'
course_enrollment_type_form in ./course.module

File

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

Code

function course_enrollment_types($type_name = NULL) {
  $types = entity_load_multiple_by_name('course_enrollment_type', isset($type_name) ? array(
    $type_name,
  ) : FALSE);
  return isset($type_name) ? reset($types) : $types;
}