You are here

function emfield_include_list in Embedded Media Field 6

Same name and namespace in other branches
  1. 5 emfield.module \emfield_include_list()
  2. 6.3 deprecated/emfield-deprecated.inc \emfield_include_list()
  3. 6.2 emfield.module \emfield_include_list()

Maintains a list of all loaded include files.

Parameters

$file: Optional; a file object (from emfield_system_list()) to be included.

Return value

An array of all loaded includes (without the .inc extension).

1 call to emfield_include_list()
emfield_system_list in ./emfield.module
Return an array of installed .inc files and/or loads them upon request. This routine is modeled after drupal_system_listing() (and also depends on it). It's major difference, however, is that it loads .inc files by default.

File

./emfield.module, line 575
Embedded Media Field is a CCK-based framework for 3rd party media files.

Code

function emfield_include_list($file = NULL) {
  static $list = array();
  if ($file && $file->filename && !isset($list[$file->filename])) {
    include_once './' . $file->filename;
    $list[$file->filename] = $file->name;
  }
  return $list;
}