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 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).
Comment | File | Size | Author |
---|---|---|---|
#1 | 927554.patch | 629 bytes | Simon Georges |
Comments
Comment #1
Simon Georges CreditAttribution: Simon Georges commentedPatch provided.
Best Regards,
Comment #2
r_honey CreditAttribution: r_honey commentedFixed (here's the commit)...