I have a custom module that which uses drupal_execute('content_copy_import_form', $data) from within the .install file to set up content types. When doing this with the rdf module enabled calls in the rdf_form_alter routine to rdf_uri_to_qname fail because the rdf_init function has not yet been called.
I am attaching a patch which adds the include calls to the rdf_form_alter routine in any condition where it gets called but the files haven't been included yet.
Given that it is generally not good form to call drupal_execute from .install files feedback on better ways to interact correctly with both the RDF module and other modules when needing to call drupal_execute in this condition is welcome. I can work around the error by including the files myself when detecting the rdf module is installed but that solution seems awkward as well.
Comment | File | Size | Author |
---|---|---|---|
rdf_install.patch | 657 bytes | tekante | |
Comments
Comment #1
milesw CreditAttribution: milesw commentedComment #2
scor CreditAttribution: scor commentedThis only applies to RDF in Drupal 6. RDFx in Drupal 7 has a completely different API.
Comment #3
smustgrave CreditAttribution: smustgrave at Mobomo commented