From 8f21cc40259db9406e00a083b4b6ca2ff9ebbb57 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 20 Oct 2009 17:33:43 +0000 Subject: #493030 follow-up by sun: Clean-ups to RDF module. --- modules/rdf/tests/rdf_test.install | 2 +- modules/rdf/tests/rdf_test.module | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'modules/rdf/tests') 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'), - ) + ), ), ); } -- cgit v1.2.3