1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
<?php
/**
* Implements hook_schema().
*/
function gestion_videos_schema() {
$schema['vod_player'] = array(
'description' => 'Store players.',
'fields' => array(
'iPlayer' => array(
'description' => 'Player iPlayer',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'sName' => array(
'description' => 'Player sName',
'type' => 'varchar',
'length' => 255,
),
'iWidth' => array(
'description' => 'Player iWidth',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'iHeight' => array(
'description' => 'Player iHeight',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'bAutoPlay' => array(
'description' => 'Player bAutoPlay',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
),
'bLoop' => array(
'description' => 'Player bLoop',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
),
'bSwitchQuality' => array(
'description' => 'Player bSwitchQuality',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
),
'dEdit' => array(
'description' => 'Player dEdit',
'mysql_type' => 'datetime',
'not null' => TRUE,
),
),
);
}
/**
* Implements hook_install().
*/
function gestion_videos_install() {
drupal_install_schema('gestion_videos');
}
/**
* Implements hook_uninstall().
*/
function gestion_videos_uninstall() {
drupal_uninstall_schema('gestion_videos');
} |
Partager