array( //a int field that cannot be null and acts as a unique identifier for all nid's 'nid' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), //a int field that cannot be null and is vid 'vid' => array( 'type' => 'int', 'not null' => TRUE, ), //a intfield, not null and project_id is the unique_id of the project in chado 'project_id' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), ),//end of shema 'primary key' => array('nid', 'vid', 'project_id'), ); return $schema; } /** * Implementation of hook_requirements(). * */ function tripal_project_requirements($phase) { $requirements = array(); if ($phase == 'install') { // make sure chado is installed if (!tripal_core_is_chado_installed()) { $requirements ['tripal_project'] = array( 'title' => "tripal_project", 'value' => "ERROR: Chado most be installed before this module can be enabled", 'severity' => REQUIREMENT_ERROR, ); } } return $requirements; }