You are here

function _filefield_paths_includes in File (Field) Paths 6.2

9 calls to _filefield_paths_includes()
filefield_paths_cron in modules/system.inc
Implements hook_cron().
filefield_paths_filefield_paths_field_options in modules/filefield_paths.inc
Implements hook_filefield_paths_field_cleanup_option().
filefield_paths_filefield_paths_field_postprocess in modules/filefield_paths.inc
Implements hook_filefield_paths_field_postprocess().
filefield_paths_filefield_paths_file_check in modules/filefield_paths.inc
Implements hook_filefield_paths_file_check().
filefield_paths_filefield_paths_file_postprocess in modules/filefield_paths.inc
Implements hook_filefield_paths_file_postprocess().

... See full list

File

./filefield_paths.module, line 31
Contains core functions for the FileField Paths module.

Code

function _filefield_paths_includes() {
  static $includes = array();
  if (empty($includes)) {
    foreach (scandir(dirname(__FILE__) . '/includes') as $file) {
      $match = array();
      if (preg_match('/(.*?)\\.inc/', $file, $match) || file_exists(dirname(__FILE__) . "/includes/{$file}/{$file}.inc")) {
        $includes[] = isset($match[1]) ? $match[1] : $file;
      }
    }
  }
  return $includes;
}