Quick Script is a powerful tool for creating custom PHP scripts on your Drupal site. Quick Scripts can be run from the admin interface, using Drush, on cron, or anonymously via a secure link. Quick Scripts can also be configured to use a form (defined with YAML) to collect data before running the script (useful for scripts with dynamic arguments).
$_QS
variable.
quickscript_include($machine_name)
function to easily cross-include your Quick Scripts. Want to just eval the code in place? Just use the
quickscript_eval($machine_name)
function.
Run your Quick Scripts from Drush using drush quickscript
MACHINE_NAME
. Easily view all your scripts by running drush quickscript-list
.
You can run your dynamic scripts with config forms by passing values into the drush command. For example: drush qs
MACHINE_NAME "key1=val1&key2=val2"
.