function publication_date_clone_node_alter in Publication Date 8.2
Same name and namespace in other branches
- 8 publication_date.module \publication_date_clone_node_alter()
- 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 76 - Add a field to nodes containing the publication date.
Code
function publication_date_clone_node_alter(&$node, $context) {
$node->published_at->value = NULL;
}