diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-20 17:33:43 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-20 17:33:43 +0000 |
commit | 8f21cc40259db9406e00a083b4b6ca2ff9ebbb57 (patch) | |
tree | 0e420408ae7173fd9d03ec48ef7aa064adbb6f3c /modules/rdf/tests | |
parent | 0fa300a696e42483d6ca3a94ba8ce74b7cbea2be (diff) | |
download | brdo-8f21cc40259db9406e00a083b4b6ca2ff9ebbb57.tar.gz brdo-8f21cc40259db9406e00a083b4b6ca2ff9ebbb57.tar.bz2 |
#493030 follow-up by sun: Clean-ups to RDF module.
Diffstat (limited to 'modules/rdf/tests')
-rw-r--r-- | modules/rdf/tests/rdf_test.install | 2 | ||||
-rw-r--r-- | modules/rdf/tests/rdf_test.module | 11 |
2 files changed, 6 insertions, 7 deletions
diff --git a/modules/rdf/tests/rdf_test.install b/modules/rdf/tests/rdf_test.install index ba7086ddd..b5253f7f7 100644 --- a/modules/rdf/tests/rdf_test.install +++ b/modules/rdf/tests/rdf_test.install @@ -21,6 +21,6 @@ function rdf_test_install() { ); foreach ($rdf_mappings as $rdf_mapping) { - rdf_save_mapping($rdf_mapping); + rdf_mapping_save($rdf_mapping); } } diff --git a/modules/rdf/tests/rdf_test.module b/modules/rdf/tests/rdf_test.module index 72959705f..46144951b 100644 --- a/modules/rdf/tests/rdf_test.module +++ b/modules/rdf/tests/rdf_test.module @@ -3,16 +3,15 @@ /** * @file - * Dummy module implementing RDF related hooks to test API interaction with - * the RDF module. + * Test API interaction with the RDF module. */ /** - * Implementation of hook_rdf_mapping(). + * Implements hook_rdf_mapping(). */ function rdf_test_rdf_mapping() { return array( - 0 => array( + array( 'type' => 'test_entity', 'bundle' => 'test_bundle', 'mapping' => array( @@ -33,12 +32,12 @@ function rdf_test_rdf_mapping() { ), ), ), - 1 => array( + array( 'type' => 'node', 'bundle' => 'blog', 'mapping' => array( 'rdftype' => array('sioct:Weblog'), - ) + ), ), ); } |