public function CourseHandler::setAccessMessage in Course 6
Same name and namespace in other branches
- 7.2 includes/CourseHandler.inc \CourseHandler::setAccessMessage()
- 7 includes/CourseHandler.inc \CourseHandler::setAccessMessage()
Set an access message to be displayed along with the course object when it is in the outline. For example, "This activity will open on XYZ" or "Please complete Step 1 to take this activity."
Parameters
string $key: Message key.
string $message: Message text.
1 call to CourseHandler::setAccessMessage()
- CourseHandler::getAccessMessages in includes/
course.core.inc - Get an array of access messages.
File
- includes/
course.core.inc, line 220 - course.core.inc File for main Course class.
Class
- CourseHandler
- @file course.core.inc File for main Course class.
Code
public function setAccessMessage($key = NULL, $message = NULL) {
if ($key == NULL) {
return $this->accessMessages;
}
elseif ($message != NULL) {
$this->accessMessages[$key] = $message;
}
}