function drupal_system_listing

This function is kept only for backward compatibility.

See also

\Drupal\Core\SystemListing::scan().

10 calls to drupal_system_listing()
drupal_get_filename in drupal/core/includes/bootstrap.inc
Returns and optionally sets the filename for a system resource.
drupal_required_modules in drupal/core/includes/module.inc
Returns an array of modules required by core.
drupal_verify_profile in drupal/core/includes/install.inc
Verifies that all dependencies are met for a given installation profile.
install_begin_request in drupal/core/includes/install.core.inc
Begins an installation request, modifying the installation state as needed.
simpletest_classloader_register in drupal/core/modules/simpletest/simpletest.module
Registers namespaces for disabled modules.

... See full list

1 string reference to 'drupal_system_listing'
drupal_get_filename in drupal/core/includes/bootstrap.inc
Returns and optionally sets the filename for a system resource.

File

drupal/core/includes/common.inc, line 4994
Common functions that many Drupal modules will need to reference.

Code

function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1) {

  // As SystemListing is required to build a dependency injection container
  // from scratch and SystemListingInfo only extends SystemLising, this
  // class needs to be hardwired.
  $listing = new SystemListingInfo();
  return $listing
    ->scan($mask, $directory, $key, $min_depth);
}