annotate dnd.install @ 42:eb7c103b54cb
 
Close open tips before page switching
 | author | 
 Franck Deroche <franck@defr.org> | 
 | date | 
 Thu, 15 Oct 2009 11:43:54 +0200 | 
 | parents | 
 5a44c430b7ac  | 
 | children | 
  | 
 | rev | 
   line source | 
  
| 
eads@1
 | 
     1 <?php | 
| 
eads@1
 | 
     2  | 
| 
eads@1
 | 
     3 /** | 
| 
eads@1
 | 
     4  * Implementation of hook_schema(). | 
| 
eads@1
 | 
     5  */ | 
| 
eads@1
 | 
     6 function dnd_schema() { | 
| 
eads@1
 | 
     7   $schema = array(); | 
| 
eads@1
 | 
     8   $schema['dnd'] = array( | 
| 
eads@1
 | 
     9     'description' => t('Associates library sources with textareas.'), | 
| 
eads@1
 | 
    10     'fields' => array( | 
| 
eads@1
 | 
    11       'textarea' => array('type' => 'varchar', 'not null' => TRUE), | 
| 
eads@1
 | 
    12       'source' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE), | 
| 
eads@2
 | 
    13       'settings' => array('type' => 'text', 'default' => ''), | 
| 
eads@1
 | 
    14     ), | 
| 
eads@1
 | 
    15     'primary key' => array('textarea'), | 
| 
eads@1
 | 
    16   ); | 
| 
eads@1
 | 
    17   return $schema; | 
| 
eads@1
 | 
    18 } | 
| 
eads@1
 | 
    19  |