public static function Updater::getProjectName

Get the name of the project directory (basename).

@todo: It would be nice, if projects contained an info file which could provide their canonical name.

Parameters

string $directory:

Return value

string The name of the project.

2 calls to Updater::getProjectName()
Updater::__construct in drupal-7.x/includes/updater.inc
Updater::__construct in drupal-7.x/includes/updater.inc

Archivo

drupal-7.x/includes/updater.inc, line 165
Classes used for updating various files in the Drupal webroot. These classes use a FileTransfer object to actually perform the operations. Normally, the FileTransfer is provided when the site owner is redirected to authorize.php as part of a multistep…

Class

Updater
Base class for Updaters used in Drupal.

Código

public static function getProjectName($directory) {
  return drupal_basename($directory);
}