function captcha_install in CAPTCHA 7
Same name and namespace in other branches
- 8 captcha.install \captcha_install()
- 5.3 captcha.install \captcha_install()
- 6.2 captcha.install \captcha_install()
- 6 captcha.install \captcha_install()
Implements of hook_install().
File
- ./
captcha.install, line 147 - Install, update and uninstall functions for the CAPTCHA module.
Code
function captcha_install() {
$t = get_t();
// Be friendly to your users: what to do after install?
drupal_set_message($t('You can now <a href="!captcha_admin">configure the CAPTCHA module</a> for your site.', array(
'!captcha_admin' => url('admin/config/people/captcha'),
)), 'status');
// Explain to users that page caching may be disabled.
if (variable_get('cache', 0) != 0) {
drupal_set_message($t('Note that the CAPTCHA module disables <a href="!performance_admin">page caching</a> of pages that include a CAPTCHA challenge.', array(
'!performance_admin' => url('admin/config/development/performance'),
)), 'warning');
}
}