On this page
function rdf_schema
rdf_schema()
Implements hook_schema().
File
- modules/rdf/rdf.install, line 11
- Install, update and uninstall functions for the rdf module.
Code
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;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!rdf!rdf.install/function/rdf_schema/7.x