function _drush_pm_info_module

8.0.x info.pm.inc _drush_pm_info_module($info)
6.x info.pm.inc _drush_pm_info_module($info)
7.x info.pm.inc _drush_pm_info_module($info)
3.x pm.drush.inc _drush_pm_info_module($info)
4.x pm.drush.inc _drush_pm_info_module($info)
5.x info.pm.inc _drush_pm_info_module($info)
master info.pm.inc _drush_pm_info_module($info)

Return a string with info of a module.

1 call to _drush_pm_info_module()
drush_pm_info in commands/pm/pm.drush.inc
Command callback. Show detailed info for one or more extension.

File

commands/pm/pm.drush.inc, line 932
The drush Project Manager

Code

function _drush_pm_info_module($info) {
  $major_version = drush_drupal_major_version();

  $data = _drush_pm_info_extension($info);
  if ($info->schema_version > 0) {
    $schema_version = $info->schema_version;
  }
  elseif ($info->schema_version == -1) {
    $schema_version = "no schema installed";
  }
  else {
    $schema_version = "module has no schema";
  }
  $data['Schema version'] = $schema_version;
  if ($major_version == 7) {
    $data['Files'] = implode(', ', $info->info['files']);
  }
  if (count($info->info['dependencies']) > 0) {
    $requires = implode(', ', $info->info['dependencies']);
  }
  else {
    $requires = "none";
  }
  $data['Requires'] = $requires;

  if ($major_version == 6) {
    if (count($info->info['dependents']) > 0) {
      $requiredby = implode(', ', $info->info['dependents']);
    }
    else {
      $requiredby = "none";
    }
    $data['Required by'] = $requiredby;
  }

  return $data;
}