I get an error when I'm trying to remove a node.

PHP Fatal error: Call to undefined function menu_nodeapi() in (...) expire.module on line 335

menu_nodeapi($node, 'prepare');

Menu_nodeapi() does not seem to exist in D7. The 'prepare' portion of that function should be implemented some other way for D7.

CommentFileSizeAuthor
#2 menu_nodeapi.1363964.2.patch498 bytesAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nevets’s picture

The call in Drupal 7 would be menu_node_prepare()

Anonymous’s picture

Status: Active » Needs review
FileSize
498 bytes

here's a one-line patch for D7.

msonnabaum’s picture

Status: Needs review » Fixed

Looks good. Committed.

Status: Fixed » Closed (fixed)

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