I was trying to add a value to the drupal antibot antibot_form_ids variable.

drush vget antibot_form_ids

returns a string separated by /r/n Adding just a value to this string isn't just enough. If you do a
drush vset antibot_form_ids 'webform_*\r\nuser_login\r\n
and so on you end up with exactly this value in the form field of the config area.

So how can it be done?


Well, I just put my drush code in a text editor like this:

drush vset antibot_form_ids "webform_*
even_more_values" -y

Then copy & paste the whole statement to your command line and voila the values are set correctly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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