| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: project_package.install,v 1.2 2009/12/01 02:39:20 dww Exp $ 3 4 /** 5 * @file 6 * Database schema definition for the Project Package module. 7 */ 8 9 /** 10 * Implement hook_install(). 11 */ 12 function project_package_install() { 13 // Create the database tables. 14 drupal_install_schema('project_package'); 15 db_query("UPDATE {system} SET weight = %d WHERE name = '%s'", 3, 'project_package'); 16 } 17 18 /** 19 * Implement hook_uninstall(). 20 */ 21 function project_package_uninstall() { 22 // Drop database tables. 23 drupal_uninstall_schema('project_package'); 24 } 25 26 /** 27 * Implementation of hook_schema(). 28 */ 29 function project_package_schema() { 30 $schema['project_package_local_release_item'] = array( 31 'description' => 'Keeps track of what releases of local sub-projects are included in a release of a given package project.', 32 'fields' => array( 33 'package_nid' => array( 34 'description' => 'Primary Key: The {node}.nid of the package release node.', 35 'type' => 'int', 36 'unsigned' => TRUE, 37 'not null' => TRUE, 38 'default' => 0, 39 ), 40 'item_nid' => array( 41 'description' => 'The {node}.nid of a local release node (from the same site) included as an item in the package.', 42 'type' => 'int', 43 'unsigned' => TRUE, 44 'not null' => TRUE, 45 'default' => 0, 46 ), 47 ), 48 'primary key' => array('package_nid', 'item_nid'), 49 ); 50 return $schema; 51 } 52
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |