module_invoke is not used. Instead, the function call is constructed from an array of modules just installed.

Comment added to clarify.

Comments

Anonymous’s picture

StatusFileSize
new1.41 KB

The above patch is now unnecessary, rdf_modules_installed was revised to use module_invoke

Anonymous’s picture

Issue tags: +RDF, +API clean-up
Anonymous’s picture

Title: Comment needed: unclear that rdf_modules_installed triggers hook_rdf_mapping » Use module_invoke in rdf_modules_installed
Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

This has been rerolled for minor clean up and is ready for review.

sun’s picture

Status: Needs review » Closed (won't fix)

Sorry, I do not see a difference here. Since we do not pass further arguments to the implementations, http://api.drupal.org/api/function/module_invoke/7 does not make any difference.

Anonymous’s picture

Status: Closed (won't fix) » Needs review

I suggested this change because I thought it would be good to use Drupal's built in function to get the return values of hook implementations. Other core modules such as Block and Filter use module_invoke this way.

It seems to me that using module_invoke would be more standard and less hard coded. Field is the only other core module (afaik) that invokes hooks by building the function name where it could use module_invoke instead.

catch’s picture

Status: Needs review » Closed (won't fix)

I don't think we should use module_invoke() here, it's an additional layer of redirection, and it includes checking for whether the hook implementation exists, which we already know in this case. Won't fixing this one again.