Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By moshe weitzman on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x-4.x
Introduced in version:
7.x-4.6
Issue links:
Description:
By following a new naming convention, you may now distribute commandfiles/config files/aliases which load only for a given version of Drush. This is sometimes helpful as the Drush API can change across its major versions. Examples:
- usage.drush5.inc (only loaded by Drush 5)
- usage.drush4.inc (only loaded by Drush 4)
- drush5/usage.drush.inc (only loaded by Drush 5)
Projects may want to ship with version specific files, and an include file which contains code shared by each implementation.
Impacts:
Site builders, administrators, editors
Module developers
Themers