You are here

function captcha_install in CAPTCHA 6.2

Same name and namespace in other branches
  1. 8 captcha.install \captcha_install()
  2. 5.3 captcha.install \captcha_install()
  3. 6 captcha.install \captcha_install()
  4. 7 captcha.install \captcha_install()

Implementation of hook_install().

File

./captcha.install, line 147
Install, update and uninstall functions for the CAPTCHA module.

Code

function captcha_install() {
  $t = get_t();
  drupal_install_schema('captcha');

  // 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/user/captcha'),
  )), 'status');

  // Explain to users that page caching may be disabled.
  if (variable_get('cache', CACHE_DISABLED) != CACHE_DISABLED) {
    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/settings/performance'),
    )), 'warning');
  }
}