public function CourseObjectSignup::take in Course 7.2
Same name and namespace in other branches
- 6 modules/course_signup/course_signup.classes.inc \CourseObjectSignup::take()
- 7 modules/course_signup/course_signup.classes.inc \CourseObjectSignup::take()
Course object entry point for taking. This method should return a value corresponding to the type set in getTakeType().
Overrides CourseObject::take
File
- modules/
course_signup/ course_signup.classes.inc, line 15
Class
Code
public function take() {
global $user;
if ($this
->getFulfillment($user)
->isComplete()) {
return t("You have been marked attended.");
}
else {
if (variable_get('course_signup_code_form_enabled')) {
return drupal_get_form('course_signup_confirmation_form');
}
else {
return t("You must be marked attended by an administrator.");
}
}
}