You are here

public function CourseObjectNode::getEditUrl in Course 6

Same name and namespace in other branches
  1. 7.2 includes/CourseObjectNode.inc \CourseObjectNode::getEditUrl()
  2. 7 includes/CourseObjectNode.inc \CourseObjectNode::getEditUrl()

Get the URL to edit this course object, if any.

Return value

string

Overrides CourseObject::getEditUrl

File

includes/course_object.core.inc, line 1104

Class

CourseObjectNode
A course object that uses a node as a base.

Code

public function getEditUrl() {
  if ($this
    ->getInstanceId()) {
    return url("node/{$this->node->nid}/edit");
  }
}