rdf_test.install 472 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the rdf module.
  5. */
  6. /**
  7. * Implements hook_install().
  8. */
  9. function rdf_test_install() {
  10. $rdf_mappings = array(
  11. array(
  12. 'type' => 'node',
  13. 'bundle' => 'test_bundle_hook_install',
  14. 'mapping' => array(
  15. 'rdftype' => array('foo:mapping_install1', 'bar:mapping_install2'),
  16. ),
  17. ),
  18. );
  19. foreach ($rdf_mappings as $rdf_mapping) {
  20. rdf_mapping_save($rdf_mapping);
  21. }
  22. }