Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been messing around with trying to pass varabiles to an install profile based on a signup form, as descripbed in this post. I'm able to get the data out of the form and into drush using hook_pre_provision_install(), but I'm not sure how to grab that data from within the install profile that was set with drush_set_option().

share|improve this question
up vote 0 down vote accepted

It appears the answer is simple: You can use drush_get_option().

Get the value for an option.

If the first argument is an array, then it checks whether one of the options exists and return the value of the first one found. Useful for allowing both -h, and --host-name.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.