function ModuleUpdater::canUpdateDirectory

Overrides DrupalUpdaterInterface::canUpdateDirectory

File

modules/system/system.updater.inc, line 40

Class

ModuleUpdater
Class for updating modules using FileTransfer classes via authorize.php.

Code

public static function canUpdateDirectory($directory) {
    if (file_scan_directory($directory, '/.*\\.module$/')) {
        return TRUE;
    }
    return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.