Tripal v1.0 (6.x-1.0)
tripal_core_files.api.inc
Go to the documentation of this file.
00001 <?php 
00034 function tripal_create_moddir($module_name) {
00035 
00036   // make the data directory for this module
00037   $data_dir = file_directory_path() . "/tripal/$module_name";
00038   if (!file_check_directory($data_dir, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS)) {
00039     $message = "Cannot create directory $data_dir. This module may not ".
00040                "behave correctly without this directory.  Please  create ".
00041                "the directory manually or fix the problem and reinstall.";
00042     drupal_set_message(check_plain(t($message)), 'error');
00043     watchdog('tripal_core', $message, array(), WATCHDOG_ERROR);
00044   }
00045 }
00046 
00060 function tripal_get_moddir($module_name) {
00061   $data_dir = file_directory_path() . "/tripal/$module_name";
00062   return $data_dir;
00063 }
 All Classes Files Functions Variables