I got this error when I implemented a hook_menu_link_update() in my module.
http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...

I have read that db_result() was to be removed from Drupal 7. In that case this is a bug. Please fix it!

CommentFileSizeAuthor
#2 hook_menu_link_insert-api.patch749 byteslyricnz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Damien Tournoud’s picture

Title: Fatal error: Call to undefined function db_result() » hook_menu_link_update() example uses invalid db_result()
Component: menu system » documentation

Yes, db_result() was removed from D7. This is a documentation bug.

lyricnz’s picture

Version: 7.0 » 8.x-dev
Status: Active » Needs review
Issue tags: +Needs backport to D7
FileSize
749 bytes

Attached patch valid for D7/D8

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me, thanks for the report and the patch!

8.x/7.x please...

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x and 7.x. Nice catch!

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