Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The clone_access($node) function is not an implementation of hook_access($op, $node, $account).
The function should be renamed.
This affects drupal 5 & 6 versions.
Comment | File | Size | Author |
---|---|---|---|
#6 | 805002-hook-access-D5x-1x-6.patch | 1.09 KB | pwolanin |
#3 | 805002-hook-access-D6-3.patch | 1.05 KB | pwolanin |
#2 | 805002-hook-access-D5-2.patch | 1.17 KB | pwolanin |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedugh, indeed - though this should only arise if you have a node type named 'clone', right?
Comment #2
pwolanin CreditAttribution: pwolanin commentedHere's a Drupal 5 patch to test.
Comment #3
pwolanin CreditAttribution: pwolanin commentedDrupal 6 version - run update.php or force a menu rebuild
Comment #4
pwolanin CreditAttribution: pwolanin commentedBy the way - CCK defines a function called content_access() - so be sure not to crate a custom node type named 'content'.
I assume you created a custom node type module?
Comment #5
rup3rt CreditAttribution: rup3rt commentedsubscribe
Comment #6
pwolanin CreditAttribution: pwolanin commented5.x-1.x version
Comment #7
pwolanin CreditAttribution: pwolanin commentedcommitted patches
Comment #8
Agileware CreditAttribution: Agileware commentedThanks.
Actually I didn't have any problems with this but I had to do a custom clone form for a client that called some of your functions and I noticed it when I was looking through.
I don't think this is an uncommon issue among contrib modules.