summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/rdf/rdf.install
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/rdf/rdf.install')
-rw-r--r--kolab.org/www/drupal-7.26/modules/rdf/rdf.install49
1 files changed, 49 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/rdf/rdf.install b/kolab.org/www/drupal-7.26/modules/rdf/rdf.install
new file mode 100644
index 0000000..10d3f8d
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/rdf/rdf.install
@@ -0,0 +1,49 @@
+<?php
+
+/**
+ * @file
+ * Install, update and uninstall functions for the rdf module.
+ */
+
+/**
+ * Implements hook_schema().
+ */
+function rdf_schema() {
+ $schema['rdf_mapping'] = array(
+ 'description' => 'Stores custom RDF mappings for user defined content types or overriden module-defined mappings',
+ 'fields' => array(
+ 'type' => array(
+ 'type' => 'varchar',
+ 'length' => 128,
+ 'not null' => TRUE,
+ 'description' => 'The name of the entity type a mapping applies to (node, user, comment, etc.).',
+ ),
+ 'bundle' => array(
+ 'type' => 'varchar',
+ 'length' => 128,
+ 'not null' => TRUE,
+ 'description' => 'The name of the bundle a mapping applies to.',
+ ),
+ 'mapping' => array(
+ 'description' => 'The serialized mapping of the bundle type and fields to RDF terms.',
+ 'type' => 'blob',
+ 'not null' => FALSE,
+ 'size' => 'big',
+ 'serialize' => TRUE,
+ ),
+ ),
+ 'primary key' => array('type', 'bundle'),
+ );
+
+ return $schema;
+}
+
+/**
+ * Implements hook_install().
+ */
+function rdf_install() {
+ // Collect any RDF mappings that were declared by modules installed before
+ // this one.
+ $modules = module_implements('rdf_mapping');
+ rdf_modules_installed($modules);
+}