Closed (won't fix)
Project:
Edit As New
Version:
4.5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 May 2006 at 01:26 UTC
Updated:
25 Jan 2011 at 16:18 UTC
I'm running edit-as-new under 4.6.5 just fine. Adding these three lines copies the taxonomy of a node as well (sorry don't know how to use diff or patch yet)
function editasnew_nodeapi(&$node, $op, $teaser, $page) {
switch ($op) {
// if a new node is being created and it was created from the "edit as new" tab,
// it should have a template defined and used to create this one.
case 'validate':
$template_nid = arg(4); // e.g. node/add/template/123
if(arg(3) == 'template' && is_numeric($template_nid)) {
$template_node = node_load(array('nid'=>$template_nid));
if (module_exist("taxonomy")) { //+
$template_node->taxonomy = array_keys(taxonomy_node_get_terms($template_nid)); //+
} //+
Comments
Comment #1
jcarlson34 commentedThis project has had no activity for years. Therefore closing this thread to clean up d.o issue queue a bit.