The existing hook_nodeapi() is

/**
 * Implementation of hook_nodeapi().
 */
function document_nodeapi(&$node, $op, $teaser, $page) {
  switch ($op) {
    case 'delete_revision':
[...]

The correct $op is "delete revision" (no underscore).

CommentFileSizeAuthor
#1 927554.patch629 bytesSimon Georges
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Simon Georges’s picture

Status: Active » Needs review
FileSize
629 bytes

Patch provided.

Best Regards,

r_honey’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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