spoiler.install in Spoiler 7
Same filename and directory in other branches
Installation and uninstallation scripts for the spoiler module.
File
spoiler.installView source
<?php
/**
* @file
* Installation and uninstallation scripts for the spoiler module.
*/
/**
* Implements hook_install().
*/
function spoiler_install() {
$t = get_t();
drupal_set_message($t('Spoiler module: Installation script complete. The spoiler filter can be configured via the <a href="!url">text formats</a> page.', array(
'!url' => url('admin/config/formats'),
)));
return array();
}
/**
* Implements hook_uninstall().
*/
function spoiler_uninstall() {
$t = get_t();
drupal_set_message($t('Spoiler module: Uninstallation script complete.'));
}
Functions
Name![]() |
Description |
---|---|
spoiler_install | Implements hook_install(). |
spoiler_uninstall | Implements hook_uninstall(). |