You are here

function course_signup_get_signup_from_enrollment in Course 7.2

Same name and namespace in other branches
  1. 7 modules/course_signup/course_signup.module \course_signup_get_signup_from_enrollment()

Get a signup from a course enrollment.

2 calls to course_signup_get_signup_from_enrollment()
course_signup_mark_attended_action in modules/course_signup/course_signup.module
Action to mark a signup attended from an enrollment.
course_signup_mark_not_attended_action in modules/course_signup/course_signup.module
Action to mark a signup not attended from an enrollment.

File

modules/course_signup/course_signup.module, line 373

Code

function course_signup_get_signup_from_enrollment($enrollment) {
  $signup = db_query("SELECT * FROM {signup_log} WHERE nid = :nid AND uid = :uid", array(
    ':nid' => $enrollment->nid,
    ':uid' => $enrollment->uid,
  ));
  return $signup
    ->fetch();
}