You are here

function publication_date_clone_node_alter in Publication Date 8

Same name and namespace in other branches
  1. 8.2 publication_date.module \publication_date_clone_node_alter()
  2. 7.2 publication_date.module \publication_date_clone_node_alter()

Implements hook_clone_node_alter().

Reset the publication date when a node is cloned using the Node Clone module.

See also

clone.api.php

File

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

Code

function publication_date_clone_node_alter(&$node, $context) {
  $node->published_at->value = NULL;
}