You are here

public function CourseObjectNode::getEditUrl in Course 7

Same name and namespace in other branches
  1. 6 includes/course_object.core.inc \CourseObjectNode::getEditUrl()
  2. 7.2 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 77

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");
  }
}