function _dmu_ensure_info_present in Drupal 7 to 8/9 Module Upgrader 8
Determines if user is re running drupal module upgrade.
Parameters
string $module: The module's machine name.
1 call to _dmu_ensure_info_present()
- _dmu_validate_command in ./
drupalmoduleupgrader.drush.inc - Validates any of the DMU commands.
File
- ./
drupalmoduleupgrader.drush.inc, line 178 - Declarations for Drush.
Code
function _dmu_ensure_info_present($module) {
$directory = _dmu_get_directory($module);
if (file_exists($directory . '/' . $module . '.info.yml')) {
drush_set_error('invalid_dir', 'You have already run dmu upgrade command for this module.');
}
}