public function CourseObjectNode::getViewUrl in Course 7
Same name and namespace in other branches
- 7.2 includes/CourseObjectNode.inc \CourseObjectNode::getViewUrl()
Get the URL to view this course object, if any.
Return value
string
Overrides CourseObject::getViewUrl
File
- includes/
CourseObjectNode.inc, line 83
Class
- CourseObjectNode
- A course object that uses a node as a base.
Code
public function getViewUrl() {
if ($this
->getNode()) {
return url("node/{$this->getNode()->nid}");
}
}