function _oembedcore_preset_schema_1 in oEmbed 6.0
2 calls to _oembedcore_preset_schema_1()
- oembedcore_schema in ./
oembedcore.install - Implementation of hook_schema().
- oembedcore_update_6001 in ./
oembedcore.install
File
- ./
oembedcore.install, line 31 - Install file for the oembed core
Code
function _oembedcore_preset_schema_1() {
return array(
'export' => array(
'identifier' => 'preset',
'primary key' => 'pid',
),
'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' => '',
),
'width' => array(
'type' => 'int',
'description' => 'The maximum width of the embed.',
'not null' => TRUE,
'default' => 0,
),
'height' => array(
'type' => 'int',
'description' => 'The maximum height of the embed.',
'not null' => TRUE,
'default' => 0,
),
'conf' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Serialized configuration of the embed, if needed.',
'not null' => TRUE,
'serialize' => TRUE,
'object default' => array(),
),
),
'primary key' => array(
'pid',
),
'unique keys' => array(
'name' => array(
'name',
),
),
);
}