change it by

function fb_graph_node_view($node, $view_mode, $langcode) {
  
}

and remove the test for $4 .
I dont know if there should be a test for the view mode because what if it is in a panel?
Please advise.

Comments

Dave Cohen’s picture

Title: fb_graph_nodeapi will not be called in drupal 7 version » fb_graph_nodeapi needs upgrade to D7
Category: bug » task
Status: Needs work » Active
Issue tags: +get involved

Yes, that module needs upgrade to D7. And yes it should test view_mode and only set tags when viewing the node page.

If anyone can put together a patch, please do!