You are here

function asset_emfield_system_list in Asset 6

Same name and namespace in other branches
  1. 5.2 contrib/asset_emfield/asset_emfield.module \asset_emfield_system_list()

copied-and-modified version of emfield_system_list, to load our own provider includes

1 call to asset_emfield_system_list()
asset_emfield_asset_search in contrib/asset_emfield/asset_emfield.module

File

contrib/asset_emfield/asset_emfield.module, line 201
Asset Embedded Media Module

Code

function asset_emfield_system_list($module, $provider = NULL, $load = TRUE) {
  static $list = array();
  $files = drupal_system_listing("{$provider}\\.inc", drupal_get_path('module', $module) . "/providers", 'name', 0);
  ksort($files);
  if ($load) {
    foreach ($files as $file) {
      if ($file && !isset($list[$file->name])) {
        include_once './' . $file->filename;
        $list[$file->name] = $file->name;
      }
    }
  }
  return $files;
}