function course_clone_node_alter in Course 6
Same name and namespace in other branches
- 8.3 includes/course.exporting.inc \course_clone_node_alter()
- 8.2 includes/course.exporting.inc \course_clone_node_alter()
- 7.2 includes/course.exporting.inc \course_clone_node_alter()
- 7 includes/course.exporting.inc \course_clone_node_alter()
- 3.x includes/course.exporting.inc \course_clone_node_alter()
Implements hook_clone_node_alter().
Display warning messages if there are objects which might not properly clone.
File
- includes/
course.exporting.inc, line 8
Code
function course_clone_node_alter(&$node, $original_node, $method) {
if ($method == 'prepopulate') {
$course = course_get_course($original_node);
course_clone_warning_messages($course);
}
}