system_register

system_register($type, $name, $uri)

Registers an extension in runtime registries for execution.

Parameters

string $type: The extension type; e.g., 'module' or 'theme'.

string $name: The internal name of the extension; e.g., 'node'.

string $uri: The relative URI of the primary extension file; e.g., 'core/modules/node/node.module'.

File

core/includes/module.inc, line 75
API for loading and interacting with Drupal modules.

Code

function system_register($type, $name, $uri) {
  drupal_get_filename($type, $name, $uri);
  drupal_classloader_register($name, dirname($uri));
}
doc_Drupal
2016-10-29 09:45:58
Comments
Leave a Comment

Please login to continue.