You are here

function publication_date_node_insert in Publication Date 7

Same name and namespace in other branches
  1. 7.2 publication_date.module \publication_date_node_insert()

Implements hook_node_insert().

File

./publication_date.module, line 33
Add a field to nodes containing the publication date.

Code

function publication_date_node_insert($node) {

  // Save the publication date.
  _publication_date_set_date($node, 'insert');
}