public static function DrupalUpdaterInterface::canUpdateDirectory in Drupal 7
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 modules/system/ system.updater.inc 
- Determine if the Updater can handle the project provided in $directory.
- ThemeUpdater::canUpdateDirectory in modules/system/ system.updater.inc 
- Determine if the Updater can handle the project provided in $directory.
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);