nevergone_3 files moved
[drupal_tuksi02.git] / nevergone / nevergone_3 / nevergone_3.install
blob63bb18f2b2a4fcd2bc29fada268eeca7bafa372d
1 <?php
2 // $Id$
5 /* hook_schema() implementáció */
6 function nevergone_3_schema() {
7   /* adatbázis-táblát leíró tömb */
8   $schema['nevergone_3'] = array(
9     'description' => 'Node azonosító, színkód',
10     'fields' => array(
11       /* node azonosító */
12       'nid' => array(
13         'type' => 'int',
14         'unsigned' => TRUE,
15         'not null' => TRUE,
16         'description' => 'Node azonosító',
17       ),
18       'color' => array(
19         'type' => 'int',
20         'unsigned' => TRUE,
21         'not null' => TRUE,
22         'description' => 'Tartalomhoz rendelt színkód',
23       ),
24     ),
25     /* elsődleges kulcs */
26     'primary key' => array('nid'),
27   );
28   return $schema;
32 /* hook_install() implementáció */
33 function nevergone_3_install() {
34   drupal_install_schema('nevergone_3');
38 /* hook_uninstall() implementáció */
39 function nevergone_3_uninstall() {
40   drupal_uninstall_schema('nevergone_3');