In modr8_admin.inc, on line 241, the funciton node_get_name() is used, but this function is no longer available in Drupal 5. Therefore you should replace this line:

'%type' => 'node_get_name($node)',

with this one

'%type' => 'node_get_types("name", $node)',

That solves the problem.
See "Converting 4.7.x modules to 5.x" for more information about this.

CommentFileSizeAuthor
#3 modr8_node_names_1.diff822 bytespwolanin

Comments

pwolanin’s picture

Hmmm, must have missed that one. On which page do you get the error /error message?

wim leers’s picture

I don't remember that, sorry. I was lucky that it was so easy to fix, because I'm completely new to Drupal.

Thanks for your work on the modr8 module, by the way!

pwolanin’s picture

StatusFileSize
new822 bytes

ok, here's a real patchfile

pwolanin’s picture

Committed the patch, and made a new 5.x-1.1 release of the module.

pwolanin’s picture

Version: 6.x-1.x-dev » 5.x-1.0
Status: Reviewed & tested by the community » Fixed
pwolanin’s picture

Status: Fixed » Closed (fixed)