function ThemeUpdater::canUpdateDirectory
Overrides DrupalUpdaterInterface::canUpdateDirectory
File
-
modules/
system/ system.updater.inc, line 125
Class
- ThemeUpdater
- Class for updating themes using FileTransfer classes via authorize.php.
Code
static function canUpdateDirectory($directory) {
// This is a lousy test, but don't know how else to confirm it is a theme.
if (file_scan_directory($directory, '/.*\\.module$/')) {
return FALSE;
}
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.