public static function DrupalUpdaterInterface::canUpdateDirectory

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.

File

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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!updater.inc/function/DrupalUpdaterInterface::canUpdateDirectory/7.x