You are here

function upgrade_status_moved_into_core in Upgrade Status 6

Same name and namespace in other branches
  1. 5 upgrade_status.admin.inc \upgrade_status_moved_into_core()
  2. 7 upgrade_status.module \upgrade_status_moved_into_core()

Return status and notice about modules moved into Core.

Assign custom upgrade information for certain modules.

@todo Handle partial core additions, e.g.

  • Token
  • CTools: AJAX framework
  • Taxonomy image
  • Better Formats, Filter by node type

For cleanly coded and separated modules, allowing to target sub-modules in a project might be sufficient already.

@todo Check whether 'help' keys make sense. Users having those modules installed should already know what the modules are doing. This help info was kept, because the work was done, but it might not make sense at all.

Parameters

$projects: Array of projects from upgrade_status_calculate_project_data().

$project: Project name to check.

Return value

TRUE if module has been moved into core.

1 call to upgrade_status_moved_into_core()
upgrade_status_calculate_project_data in ./upgrade_status.compare.inc
Given the installed projects and the available release data retrieved from remote servers, calculate the current status.

File

./upgrade_status.module, line 140
Checks to see if your installed modules are available for the next major release of Drupal.

Code

function upgrade_status_moved_into_core(&$projects, $project) {

  // Only include in core statuses for the configured major version and below.
  // Set the oldest version's data first, so that the latest version of core may
  // update the previous version's information.
  // @todo What about modules moved into core and then back out?
  $core_version = variable_get('upgrade_status_core_version', UPGRADE_STATUS_CORE_VERSION);
  switch ($core_version) {
    case '7.x':
      $core = _upgrade_status_d7_core($projects, $project);
      break;
    case '8.x':
      $d7_core = _upgrade_status_d7_core($projects, $project);
      $d8_core = _upgrade_status_d8_core($projects, $project);
      $core = $d7_core || $d8_core;
      break;
  }
  return $core;
}