function CourseObjectNode::setInstanceId in Course 7
When setting our instance ID, also set the node.
Overrides CourseObject::setInstanceId
2 calls to CourseObjectNode::setInstanceId()
- CourseObjectNode::save in includes/
CourseObjectNode.inc - On object write, set privacy on this node.
- CourseObjectNode::setNode in includes/
CourseObjectNode.inc - Set the node and instance ID (node ID) of this CourseObjectNode.
File
- includes/
CourseObjectNode.inc, line 422
Class
- CourseObjectNode
- A course object that uses a node as a base.
Code
function setInstanceId($id) {
parent::setInstanceId($id);
// Cloning breaks without a reset.
$this->node = node_load($id, NULL, TRUE);
}