function DrupalUpdaterInterface::canUpdateDirectory
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
Class
- DrupalUpdaterInterface
- Interface for a class which can update a Drupal project.
Code
public static function canUpdateDirectory($directory);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.