function _oembed_provider_schema_1 in oEmbed 7.0
1 call to _oembed_provider_schema_1()
- oembed_schema in ./
oembed.install - Implementation of hook_schema().
File
- ./
oembed.install, line 13
Code
function _oembed_provider_schema_1() {
return array(
'export' => array(
'identifier' => 'provider',
'primary key' => 'pid',
'bulk export' => TRUE,
'default hook' => 'default_oembed_provider',
'api' => array(
'owner' => 'oembed',
'api' => 'oembed_provider',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'pid' => array(
'type' => 'serial',
'description' => 'Primary ID field for the table. Not used for anything except internal lookups.',
'not null' => TRUE,
'no export' => TRUE,
),
'name' => array(
'type' => 'varchar',
'length' => 255,
'description' => 'Unique ID for this subtask. Used to identify it programmatically.',
'not null' => TRUE,
'default' => '',
),
'title' => array(
'description' => 'The human-readable title of the provider.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'endpoint' => array(
'type' => 'varchar',
'length' => 255,
'description' => 'The endpoint for this provider.',
'not null' => TRUE,
'default' => '',
),
'scheme' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Line separated scheme definition.',
'not null' => TRUE,
'serialize' => TRUE,
'object default' => '',
),
),
'primary key' => array(
'pid',
),
'unique keys' => array(
'name' => array(
'name',
),
),
);
}