summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/rdf/tests/rdf_test.install
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/rdf/tests/rdf_test.install')
-rw-r--r--kolab.org/www/drupal-7.26/modules/rdf/tests/rdf_test.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/rdf/tests/rdf_test.install b/kolab.org/www/drupal-7.26/modules/rdf/tests/rdf_test.install
new file mode 100644
index 0000000..91a3392
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/rdf/tests/rdf_test.install
@@ -0,0 +1,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);
+ }
+}