Let's use hook_hook_info() to offload any RDF hooks into modulename.rdf.inc.

CommentFileSizeAuthor
#1 1166140-rdf-hook-info.patch17.92 KBdave reid

Comments

dave reid’s picture

Status: Active » Needs review
Issue tags: +hook separation
StatusFileSize
new17.92 KB
scor’s picture

That's a good idea for the implementations of hook_rdf_mapping(), this code is actually rarely used as it is cached in entity_info.

rdf_rdf_namespaces() on the other hand is called on every single page load, and I wonder if moving it to a separate file is worth the extra file load.

Anonymous’s picture

Status: Needs review » Postponed

The RDF mapping API may change as a result of the work in #1778226: [META] Fix RDF module.

Anonymous’s picture

Anonymous’s picture

The only remaining rdf hook is hook_rdf_namespaces, which will be removed with #1778410: Throw exception when RDF namespaces collide. Once that is in, this can be closed.

mgifford’s picture

Issue summary: View changes

@linclark - Can we close this issue now?

scor’s picture

Status: Postponed » Closed (won't fix)

I don't think it's worth it or needed given that there is only hook_rdf_namespaces() left, and that most modules won't even have to implement this hook. The implementation in rdf.module will also go down in size once we remove all the other namespaces.