You are here

function emfield_include_list in Embedded Media Field 5

Same name and namespace in other branches
  1. 6.3 deprecated/emfield-deprecated.inc \emfield_include_list()
  2. 6 emfield.module \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 911

Code

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