Skip to content

Custom drush command to create a new file from a distant source to Drupal, and assign it's file id to a given variable

Notifications You must be signed in to change notification settings

liupascal/drush-variable-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

drush-variable-file

Custom drush command to create a new file from a distant source to Drupal, and assign it's file id to a given variable

To install it, copy the folder to your drush folder and don't forget to run a drush cc drush to have your drush detect your new function.

Usage :
drush add-variable-fid [--folder]

Arguments :
file : Source file, can be a distant file with full URL.
variable_name : Your Drupal destination variable.

Options :
--folder : Specify a folder name in your public:// folder. If it does not exist, it will be created.

About

Custom drush command to create a new file from a distant source to Drupal, and assign it's file id to a given variable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published