You are here

function course_clone_node_alter in Course 3.x

Same name and namespace in other branches
  1. 8.3 includes/course.exporting.inc \course_clone_node_alter()
  2. 8.2 includes/course.exporting.inc \course_clone_node_alter()
  3. 6 includes/course.exporting.inc \course_clone_node_alter()
  4. 7.2 includes/course.exporting.inc \course_clone_node_alter()
  5. 7 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 9

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