summaryrefslogtreecommitdiff
path: root/modules/rdf/tests/rdf_test.install
blob: 91a33927dac067606ec9828ab087f7f123ecab62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

/**
 * @file
 * Install, update and uninstall functions for the rdf module.
 */

/**
 * Implements hook_install().
 */
function rdf_test_install() {
  $rdf_mappings = array(
    array(
      'type' => 'node',
      'bundle' => 'test_bundle_hook_install',
      'mapping' => array(
        'rdftype' => array('foo:mapping_install1', 'bar:mapping_install2'),
      ),
    ),
  );

  foreach ($rdf_mappings as $rdf_mapping) {
    rdf_mapping_save($rdf_mapping);
  }
}