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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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