Closed (fixed)
Project:
Node clone
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 Aug 2011 at 15:50 UTC
Updated:
9 May 2014 at 01:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ldweeks commentedFound it. Here's a patch for some documentation for the next guy.
Comment #2
jax commentedIn the 7.x version the signature is different:
drupal_alter('clone_node', $node, $context);
Comment #3
moshe weitzman commentedIdeally this is documented in a new api.node_clone.inc file for D7.
Comment #4
robloachclone.api.php
Comment #5
johnvJust for reference: there is also some text in clone.pages.inc.
Comment #6
johnvComment #7
dwwI was just using node_clone for a project and wanted to know if it invoked any hooks. Didn't see clone.api.php. Grepped the code. Found the alter hooks, and wrote my own API docs to contribute. Was about to submit a new issue but searched first and found this. ;) Here are patches for both D6 and D7, ready for
git amgoodness.Cheers,
-Derek
Comment #8
johnvThis is nice - it took me a long time before mastering the hook_alter, although it is mentioned in the docu.
Perhaps you can add the following switch + simplification in the example:
Comment #9
pwolanin commentedThanks dww!
do we really need to remove the inline docs, or you just think that will get stale?
Comment #10
dwwSure! :) Just seems pointless to duplicate them in multiple places where people aren't going to look. [module].api.php is the ubiquitous standard now, so if we've got that, we're set.
Cheers,
-Derek
Comment #11
pwolanin commentedcommitted to 6 and 7