public static function DrupalUpdaterInterface::canUpdateDirectory

7.x updater.inc public static DrupalUpdaterInterface::canUpdateDirectory($directory)

Determine if the Updater can handle the project provided in $directory.

@todo: Provide something more rational here, like a project spec file.

Parameters

string $directory:

Return value

bool TRUE if the project is installed, FALSE if not.

2 methods override DrupalUpdaterInterface::canUpdateDirectory()
ModuleUpdater::canUpdateDirectory in drupal-7.x/modules/system/system.updater.inc
Determine if the Updater can handle the project provided in $directory.
ThemeUpdater::canUpdateDirectory in drupal-7.x/modules/system/system.updater.inc
Determine if the Updater can handle the project provided in $directory.

File

drupal-7.x/includes/updater.inc, line 54
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

DrupalUpdaterInterface
Interface for a class which can update a Drupal project.

Code

public static function canUpdateDirectory($directory);