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.
While running Strongarm, RDF and a module that uses RDF hooks to store data, we ran into recurrent user warnings about errors in the SQL syntax when saving / updating nodes. It turned out that if a module with lower weight than RDF calls drupal_get_schema() from its hook_init(), the user defined rdf_data tables never get properly loaded in the schema, resulting in a mess when saving RDF data through the API for the custom module.
This patch insures that rdf_db_get_repository_tables() is available to rdf_schema_alter().
Comment | File | Size | Author |
---|---|---|---|
#1 | rdf-693018.install.patch | 831 bytes | tirdadc |
Comments
Comment #1
tirdadc CreditAttribution: tirdadc commentedComment #2
febbraro CreditAttribution: febbraro commentedThis looks good and works for me.
Other RDF maintainers, was there a specific reason for the previous implementation, meaning a reason for not just including the file that was needed, but instead skipping the addition if it was not previously included? Any objections to committing this?
Comment #3
smustgrave CreditAttribution: smustgrave at Mobomo commented