Files API

  1. 2.x tripal_core/api/tripal_core.files.api.inc tripal_files_api
  2. 3.x tripal/api/tripal.files.api.inc tripal_files_api
  3. 1.x tripal_core/api/tripal_core_files.api.inc tripal_files_api

@file The Tripal Files API

This file provides the API to help Tripal modules to storing files in a consistent directory strcuture.

Provides an application programming interface (API) for managing files within the Tripal data directory structure.

Parent topics

File

tripal_core/api/tripal_core_files.api.inc, line 2
The Tripal Files API

Functions

Namesort descending Location Description
tripal_create_moddir tripal_core/api/tripal_core_files.api.inc This function is typically used in the '.install' file for a Tripal module Each module should call this function during installation to create the module data directory which is sites/default/files/tripal/[module_name] for default Drupal…
tripal_get_moddir tripal_core/api/tripal_core_files.api.inc 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.