You are here

function course_node_insert in Course 7

Same name and namespace in other branches
  1. 7.2 course.module \course_node_insert()

Implements hook_node_insert().

File

./course.module, line 738
course.module Core functionality for Courses.

Code

function course_node_insert($node) {
  if (course_node_is_course($node)) {
    if (!isset($node->course)) {
      $node->course = array();
    }
    course_node_update($node);
  }
}