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.
Got this warning
Warning: Missing argument 3 for exclude_node_title_node_view() in exclude_node_title_node_view() (line 79 of C:\xampp\htdocs\drupal7beta2\sites\all\modules\exclude_node_title\exclude_node_title.module).
Comments
Comment #1
gabrielu CreditAttribution: gabrielu commentedYou have to replace the function definition in exclude_node_title.module:79 from:
to:
Comment #2
gabrielu CreditAttribution: gabrielu commentedMaybe this isn't related to Exclude node title, as hook_node_view() should have all three arguments passed, see http://api.drupal.org/api/drupal/modules--node--node.api.php/function/ho...
Comment #3
gabrielu CreditAttribution: gabrielu commentedComment #4
rooby CreditAttribution: rooby commentedI have run into this with porting the location module too.
It seems to doco is wrong and there are only 2 params.
If you look at the implementations of blog_node_view(), forum_node_view() etc they only have 2.
I opened a doco issue here - #1102556: hook_node_view (maybe) has only two arguments
Comment #5
gabrielu CreditAttribution: gabrielu commentedYou are absolutely right, I must update the hook.
See latest DEV release.
Thanks,
Gabriel
Comment #6
gabrielu CreditAttribution: gabrielu commented