You are here

function course_clone_node_alter in Course 7

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