1 system.module system_system_info_alter(&$info, $file, $type)

Implements hook_system_info_alter().

Deprecated

since 1.1 This function should not be necessary in Backdrop 2.0, where modules built-into core no longer need to be prevented from enabling.

File

core/modules/system/system.module, line 3984
Configuration system that lets administrators modify the workings of the site.

Code

function system_system_info_alter(&$info, $file, $type) {
  if (in_array($file->name, backdrop_merged_modules())) {
    // Set a special flag indicating this module is now in core.
    $info['merged_into_core'] = TRUE;
    // Remove Backdrop core version as a fallback, ensuring it won't be enabled.
    $info['backdrop'] = NULL;
  }
}