function jw_player_schema in JW Player 7.2
Same name and namespace in other branches
- 7 jw_player.install \jw_player_schema()
Implements hook_schema().
File
- ./
jw_player.install, line 10 - Install, update and uninstall functions for the JW Player module.
Code
function jw_player_schema() {
$schema['jwplayer_preset'] = array(
'description' => 'Stores information of JW Player presets',
'export' => array(
'key' => 'machine_name',
'identifier' => 'jw_player_preset',
'default hook' => 'default_jw_player_presets',
// Function hook name
'api' => array(
'owner' => 'jw_player',
'api' => 'jw_player_presets',
// Base name for api include files.
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'preset_name' => array(
'type' => 'varchar',
'length' => 255,
'description' => 'Name for the preset.',
),
'machine_name' => array(
'type' => 'varchar',
'length' => 255,
'description' => 'Unique machine name for every configuration preset.',
'not null' => TRUE,
),
'description' => array(
'description' => "Provide text summary for the preset",
'type' => 'text',
),
'settings' => array(
'description' => 'Serialized settings array of a given preset.',
'type' => 'blob',
'size' => 'big',
'not null' => FALSE,
'serialize' => TRUE,
),
),
'unique keys' => array(
'machine_name' => array(
'machine_name',
),
),
'primary key' => array(
'machine_name',
),
);
return $schema;
}