You are here

public function CourseObjectNode::getEditUrl in Course 7.2

Same name and namespace in other branches
  1. 6 includes/course_object.core.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/CourseObjectNode.inc, line 70

Class

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

Code

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