function honeypot_install in Honeypot 7
Same name and namespace in other branches
- 8 honeypot.install \honeypot_install()
- 6 honeypot.install \honeypot_install()
- 2.0.x honeypot.install \honeypot_install()
Implements hook_install().
File
- ./
honeypot.install, line 45 - Install, update and uninstall functions for the Honeypot module.
Code
function honeypot_install() {
// Create CSS file.
honeypot_create_css(variable_get('honeypot_element_name', 'url'));
if (!drupal_is_cli()) {
$t = get_t();
drupal_set_message($t("Honeypot installed successfully. Please !link to protect your forms from spam bots.", array(
'!link' => l($t('configure Honeypot'), 'admin/config/content/honeypot'),
)));
}
}