function course_clone_node_alter in Course 7.2
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()
- 6 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, $context) {
if ($context['method'] == 'prepopulate') {
if ($course = course_get_course($context['original_node'])) {
course_clone_warning_messages($course);
}
}
}