rdf.install

  1. cis7 modules/rdf/rdf.install
  2. cle7 modules/rdf/rdf.install
  3. ecd7 modules/rdf/rdf.install
  4. elmsmedia7 modules/rdf/rdf.install
  5. harmony7 modules/rdf/rdf.install
  6. icor7 modules/rdf/rdf.install
  7. meedjum_blog7 modules/rdf/rdf.install
  8. mooc7 modules/rdf/rdf.install

Install, update and uninstall functions for the rdf module.

Functions

Namesort descending Description
rdf_install Implements hook_install().
rdf_schema Implements hook_schema().

File

modules/rdf/rdf.install
View source
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the rdf module.
  5. */
  6. /**
  7. * Implements hook_schema().
  8. */
  9. function rdf_schema() {
  10. $schema['rdf_mapping'] = array(
  11. 'description' => 'Stores custom RDF mappings for user defined content types or overriden module-defined mappings',
  12. 'fields' => array(
  13. 'type' => array(
  14. 'type' => 'varchar',
  15. 'length' => 128,
  16. 'not null' => TRUE,
  17. 'description' => 'The name of the entity type a mapping applies to (node, user, comment, etc.).',
  18. ),
  19. 'bundle' => array(
  20. 'type' => 'varchar',
  21. 'length' => 128,
  22. 'not null' => TRUE,
  23. 'description' => 'The name of the bundle a mapping applies to.',
  24. ),
  25. 'mapping' => array(
  26. 'description' => 'The serialized mapping of the bundle type and fields to RDF terms.',
  27. 'type' => 'blob',
  28. 'not null' => FALSE,
  29. 'size' => 'big',
  30. 'serialize' => TRUE,
  31. ),
  32. ),
  33. 'primary key' => array('type', 'bundle'),
  34. );
  35. return $schema;
  36. }
  37. /**
  38. * Implements hook_install().
  39. */
  40. function rdf_install() {
  41. // Collect any RDF mappings that were declared by modules installed before
  42. // this one.
  43. $modules = module_implements('rdf_mapping');
  44. rdf_modules_installed($modules);
  45. }
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.