You are here

function DrupalSystem::getActiveExtensions in X Autoload 7.4

Same name and namespace in other branches
  1. 7.5 src/DrupalSystem/DrupalSystem.php \Drupal\xautoload\DrupalSystem\DrupalSystem::getActiveExtensions()

Return value

string[] Extension types by extension name.

Overrides DrupalSystemInterface::getActiveExtensions

File

lib/DrupalSystem/DrupalSystem.php, line 43

Class

DrupalSystem

Namespace

Drupal\xautoload\DrupalSystem

Code

function getActiveExtensions() {

  // Doing this directly tends to be a lot faster than system_list().
  return db_query("SELECT name, type from {system} WHERE status = 1")
    ->fetchAllKeyed();
}