cms/drupal/modules/rdf/tests/rdf_test.install
changeset 541 e756a8c72c3d
equal deleted inserted replaced
540:07239de796bb 541:e756a8c72c3d
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * @file
       
     5  * Install, update and uninstall functions for the rdf module.
       
     6  */
       
     7 
       
     8 /**
       
     9  * Implements hook_install().
       
    10  */
       
    11 function rdf_test_install() {
       
    12   $rdf_mappings = array(
       
    13     array(
       
    14       'type' => 'node',
       
    15       'bundle' => 'test_bundle_hook_install',
       
    16       'mapping' => array(
       
    17         'rdftype' => array('foo:mapping_install1', 'bar:mapping_install2'),
       
    18       ),
       
    19     ),
       
    20   );
       
    21 
       
    22   foreach ($rdf_mappings as $rdf_mapping) {
       
    23     rdf_mapping_save($rdf_mapping);
       
    24   }
       
    25 }