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.
This is a cool big improvement.
The original idea coming from the jurgenhaas Feedback.
Comments
Comment #1
jurgenhaasThis should be very easy to implement: just remove the .info and .module files and include everything that is now in the .module into the .drush.inc - that should be it.
Then,
drush dl entity_scaffold
should download and install this module into ~/.drush/entity_scaffold and it can be used globally.EDIT:
In addition a small change in the first define instruction is required:
define('ENTITY_SCAFFOLD_MODEL_MODULE_PATH', dirname(__FILE__) . '/model/');
I.e. use dirname() instead of drupal_get_path().
Comment #2
luizsgpetri CreditAttribution: luizsgpetri at CI&T for Pfizer, Inc. commentedFixed
Comment #5
jurgenhaasLooks like this drush command is using functions that are defined by Drupal and therefore requires a higher bootstrap level.
Comment #6
jribeiro CreditAttribution: jribeiro commentedhey @jurgenhaas,
We created the branch 7.x-2.x with the changes to convert the module to be a 'global drush' command.
But, when I use drush dl entity_scaffold --select and select the 2.x version, the drush dl don't saves the module in the drush folder, instead saves in the relative path.
any idea?
Comment #7
jurgenhaasShould be working just fine. Is that only happening when you'r using the --select option? If so, that might be a drush issue then.
Comment #9
jribeiro CreditAttribution: jribeiro commentedDone!
Implemented and released on 7.x-1.0-beta2. Check the commit.
Thanks guys, you were mentioned in the commit.
Comment #11
luizsgpetri CreditAttribution: luizsgpetri at CI&T for Pfizer, Inc. commentedComment #12
luizsgpetri CreditAttribution: luizsgpetri at CI&T for Pfizer, Inc. commentedComment #13
luizsgpetri CreditAttribution: luizsgpetri at CI&T for Pfizer, Inc. commented