You are here

function course_clone_node_alter in Course 6

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. 7.2 includes/course.exporting.inc \course_clone_node_alter()
  4. 7 includes/course.exporting.inc \course_clone_node_alter()
  5. 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);
  }
}