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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | modr8_node_names_1.diff | 822 bytes | pwolanin |
Comments
Comment #1
pwolanin commentedHmmm, must have missed that one. On which page do you get the error /error message?
Comment #2
wim leersI 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!
Comment #3
pwolanin commentedok, here's a real patchfile
Comment #4
pwolanin commentedCommitted the patch, and made a new 5.x-1.1 release of the module.
Comment #5
pwolanin commentedComment #6
pwolanin commented