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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pwolanin’s picture

ugh, indeed - though this should only arise if you have a node type named 'clone', right?

pwolanin’s picture

Status: Active » Needs review
FileSize
1.17 KB

Here's a Drupal 5 patch to test.

pwolanin’s picture

Drupal 6 version - run update.php or force a menu rebuild

pwolanin’s picture

By 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?

rup3rt’s picture

subscribe

pwolanin’s picture

5.x-1.x version

pwolanin’s picture

Status: Needs review » Fixed

committed patches

Agileware’s picture

Thanks.

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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.