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.
Problem/Motivation
If you read How to use negative number as argument value in a drush command? you will see that at this moment is not possible to use a negative value as argument, but for the drush mw-reorder
command this is very important because the weight can be a negative integer.
Proposed resolution
Add a command option to allow negative values in the drush mw-reorder command.
Setting the onlyone module weight to -5.
drush mw-reorder onlyone 5 --minus
Remaining tasks
None.
User interface changes
None.
API changes
Added the --minus option to the drush mw-reorder
command
Data model changes
None.
Comments
Comment #3
adriancidComment #4
adriancid