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