Closed (works as designed)
Project:
Node clone
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2008 at 23:34 UTC
Updated:
23 Jan 2008 at 19:57 UTC
When cloning a node, the cloned node is presented on a form that has apparently not been run through drupal_prepare_form() and so any form alters for that node type are not present in the resulting page until after submitting and re-editing the node.
Comments
Comment #1
pwolanin commentedhmm, that's not good - but why is that happening if I call it as:
drupal_get_form should always run the alter hook, right?
Comment #2
pwolanin commentednote - this is exactly the same code used here : http://api.drupal.org/api/function/node_page_edit/5
Perhaps there is something else funny with your code - like incorrect assumptions about the path that arg(2) == 'edit'? Where are you seeing this problem?
Comment #3
harry slaughterYou are correct. I was checking arg() values as well, not sure why.
hook_form_alter runs fine.