function purl_schema in Persistent URL 6
Same name and namespace in other branches
- 8 purl.install \purl_schema()
- 7 purl.install \purl_schema()
Implementation of hook_schema().
File
- ./
purl.install, line 24
Code
function purl_schema() {
$schema['purl'] = array(
'description' => t('purl.'),
'fields' => array(
'value' => array(
'description' => t('The string to detect from incoming URLs and to use when rewriting outgoing URLs.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'provider' => array(
'description' => t('The provider (usually a module\'s name) of the prefix/id pair.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'id' => array(
'description' => t('The ID given by the provider to associate with a corresponding prefix. This might be a group_nid (og), a language code (i18n) or some other unique identifier that the provider is interested in associating with the URL prefix.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'value',
),
'indexes' => array(
'provider_id' => array(
'provider',
'id',
),
),
);
return $schema;
}