| 1 |
<?php |
<?php |
| 2 |
// $Id: docapi.install,v 1.2 2008/06/07 05:52:14 bradfordcp Exp $ |
// $Id: docapi.install,v 1.2.2.1 2008/06/26 12:23:31 bradfordcp Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 27 |
'unsigned' => true, |
'unsigned' => true, |
| 28 |
'not null' => true, |
'not null' => true, |
| 29 |
), |
), |
| 30 |
|
'uid' => array( |
| 31 |
|
'description' => t('The uid of the user who uploaded the file.'), |
| 32 |
|
'type' => 'int', |
| 33 |
|
'unsigned' => true, |
| 34 |
|
'not null' => true, |
| 35 |
|
), |
| 36 |
'filemime' => array( |
'filemime' => array( |
| 37 |
'description' => t('The mimetype of the file.'), |
'description' => t('The mimetype of the file.'), |
| 38 |
'type' => 'varchar', |
'type' => 'varchar', |
| 39 |
'length' => '50', |
'length' => '255', |
| 40 |
'default' => 'text/plain', |
'default' => 'text/plain', |
| 41 |
'not null' => true, |
'not null' => true, |
| 42 |
), |
), |
| 43 |
'filename' => array( |
'filename' => array( |
| 44 |
'description' => t('The filename of the file.'), |
'description' => t('The filename of the file.'), |
| 45 |
'type' => 'varchar', |
'type' => 'varchar', |
| 46 |
'length' => '100', |
'length' => '255', |
| 47 |
'default' => t(''), |
'default' => t(''), |
| 48 |
'not null' => true, |
'not null' => true, |
| 49 |
), |
), |
| 50 |
'filepath' => array( |
'filepath' => array( |
| 51 |
'description' => t('The path to the file on the server relative to the site root.'), |
'description' => t('The path to the file on the server relative to the site root.'), |
| 52 |
'type' => 'varchar', |
'type' => 'varchar', |
| 53 |
'length' => '100', |
'length' => '255', |
| 54 |
'not null' => true, |
'not null' => true, |
| 55 |
), |
), |
| 56 |
'filesize' => array( |
'filesize' => array( |
| 93 |
'name' => array( |
'name' => array( |
| 94 |
'description' => t('The name of the plugin'), |
'description' => t('The name of the plugin'), |
| 95 |
'type' => 'varchar', |
'type' => 'varchar', |
| 96 |
'length' => '100', |
'length' => '255', |
| 97 |
'not null' => true, |
'not null' => true, |
| 98 |
), |
), |
| 99 |
'module' => array( |
'module' => array( |
| 100 |
'description' => t('The name of the module containing the plugin'), |
'description' => t('The name of the module containing the plugin'), |
| 101 |
'type' => 'varchar', |
'type' => 'varchar', |
| 102 |
'length' => '100', |
'length' => '255', |
| 103 |
'not null' => true, |
'not null' => true, |
| 104 |
), |
), |
| 105 |
), |
), |
| 123 |
'mimetype' => array( |
'mimetype' => array( |
| 124 |
'description' => t('The mimetype the plugin parses'), |
'description' => t('The mimetype the plugin parses'), |
| 125 |
'type' => 'varchar', |
'type' => 'varchar', |
| 126 |
'length' => '200', |
'length' => '255', |
| 127 |
'not null' => true, |
'not null' => true, |
| 128 |
), |
), |
| 129 |
'weight' => array( |
'weight' => array( |
| 154 |
'nodetype' => array( |
'nodetype' => array( |
| 155 |
'description' => t('The type of node this map is for.'), |
'description' => t('The type of node this map is for.'), |
| 156 |
'type' => 'varchar', |
'type' => 'varchar', |
| 157 |
'length' => '200', |
'length' => '255', |
| 158 |
'not null' => true, |
'not null' => true, |
| 159 |
), |
), |
| 160 |
'node_field' => array( |
'node_field' => array( |
| 161 |
'desciption' => t('The field the module is mapping to within the node.'), |
'desciption' => t('The field the module is mapping to within the node.'), |
| 162 |
'type' => 'varchar', |
'type' => 'varchar', |
| 163 |
'length' => '200', |
'length' => '255', |
| 164 |
'not null' => true, |
'not null' => true, |
| 165 |
), |
), |
| 166 |
'metadata_field' => array( |
'metadata_field' => array( |
| 167 |
'description' => t('The field within the metadata table where the data will be pulled from.'), |
'description' => t('The field within the metadata table where the data will be pulled from.'), |
| 168 |
'type' => 'varchar', |
'type' => 'varchar', |
| 169 |
'length' => '200', |
'length' => '255', |
| 170 |
'not null' => true, |
'not null' => true, |
| 171 |
), |
), |
| 172 |
), |
), |
| 190 |
'field' => array( |
'field' => array( |
| 191 |
'description' => t('The name of the metadata field.'), |
'description' => t('The name of the metadata field.'), |
| 192 |
'type' => 'varchar', |
'type' => 'varchar', |
| 193 |
'length' => '200', |
'length' => '255', |
| 194 |
'not null' => true, |
'not null' => true, |
| 195 |
), |
), |
| 196 |
'meta_value' => array( |
'meta_value' => array( |
| 197 |
'desciption' => t('The value of the metadata'), |
'desciption' => t('The value of the metadata'), |
| 198 |
'type' => 'varchar', |
'type' => 'blob', |
|
'length' => '200', |
|
| 199 |
'not null' => true, |
'not null' => true, |
| 200 |
), |
), |
| 201 |
), |
), |
| 243 |
} |
} |
| 244 |
|
|
| 245 |
/** |
/** |
|
* Implementation of hook_update_N |
|
|
*/ |
|
|
function docapi_update_1() { |
|
|
$ret = array(); |
|
|
db_add_field($ret, 'docapi_plugins', 'module', array('type' => 'varchar', 'length' => '100', 'not null' => true)); |
|
|
return $ret; |
|
|
} |
|
|
|
|
|
/** |
|
| 246 |
* Implementation of hook_uninstall |
* Implementation of hook_uninstall |
| 247 |
*/ |
*/ |
| 248 |
function docapi_uninstall() { |
function docapi_uninstall() { |