Last active
March 11, 2020 22:46
-
-
Save jeffam/d9d4d737602c4412862035373f5f12a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Set the default message. | |
cat <<'EOF' | drush vset efd_default_message - | |
<p>As a result of the University's <a href="https://statements.cornell.edu/2020/20200310-coronavirus-update.cfm">recently announced proactive measures</a> to prevent the spread of the novel coronavirus disease, COVID-19, this event has been cancelled and we are not currently accepting applications.<br>For more information, please <a href="/about-ilr/contact-us">contact us</a>.</p> | |
EOF | |
# Here's an example of disabling a form using the default message. | |
echo '{default}' | drush vset efd__fex_wisp_sponsor_registration - | |
# Here's an example of disabling the same form as above with a custom message. | |
cat <<'EOF' | drush vset efd__fex_wisp_sponsor_registration - | |
<p>As a result of the University's <a href="https://statements.cornell.edu/2020/20200310-coronavirus-update.cfm">recently announced proactive measures</a> to prevent the spread of the novel coronavirus disease, COVID-19, this event has been cancelled and we are not currently accepting applications.<br>For more information, please <a href="/about-ilr/contact-us">contact us</a>.</p> | |
<p>Additional information would go here.</p> | |
EOF | |
# To re-enable a form, just remove the variable: | |
# drush vdel efd__fex_wisp_sponsor_registration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment