function tripal_get_moddir
2.x tripal_core.DEPRECATED.api.inc | tripal_get_moddir($module_name) |
3.x tripal_core.DEPRECATED.inc | tripal_get_moddir($module_name) |
1.x tripal_core_files.api.inc | tripal_get_moddir($module_name) |
Each Tripal module has a unique data directory which was creatd using the tripal_create_moddir function during installation. This function retrieves the directory path.
@returns The path within the Drupal installation where the data directory resides
Parameters
$module_name: The name of the module
Related topics
File
- tripal_core/
api/ tripal_core_files.api.inc, line 60 - The Tripal Files API
Code
function tripal_get_moddir($module_name) {
$data_dir = file_directory_path() . "/tripal/$module_name";
return $data_dir;
}