function tripal_organism_install

2.x tripal_organism.install tripal_organism_install()
3.x tripal_organism.install tripal_organism_install()
1.x tripal_organism.install tripal_organism_install()

Implementation of hook_install().

Related topics

File

tripal_organism/tripal_organism.install, line 13
Functions pertaining to the install/uninstall of this module

Code

function tripal_organism_install() {

  // create the module's data directory
  tripal_create_moddir('tripal_organism');

  // create the directory where image files will be stored.  We create this
  // here otherwise it will get created when the first organism is synced.
  // The user that performs the syncing will receive ownership of the
  // images directory which may not allow for write access by the web server
  // user.  So, we create it here
  $dest = file_directory_path() . "/tripal/tripal_organism/images";
  file_check_directory($dest, FILE_CREATE_DIRECTORY);

  // create the tables that correlate drupal nodes with chado
  // features, organisms, etc....
  drupal_install_schema('tripal_organism');

}