Files API

  1. 2.x tripal_core/api/ tripal_files_api
  2. 1.x tripal_core/api/ 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


tripal_core/api/, line 2
The Tripal Files API


Namesort descending Location Description
tripal_create_moddir tripal_core/api/ 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/ 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.