tipsy.install in Tipsy 7
Same filename and directory in other branches
Install, update and uninstall functions for the tipsy module.
File
tipsy.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the tipsy module.
*
*/
/**
* Implements hook_install().
*/
function tipsy_install() {
db_update('system')
->fields(array(
'weight' => 999,
))
->condition('name', 'tipsy')
->execute();
drupal_set_message(t('Tipsy has been successfully installed. Visit the <a href=@href>settings page</a> for tooltips of your choice.', array(
'@href' => base_path() . 'admin/config/user-interface/tipsy',
)));
}
/**
* Implements hook_uninstall().
*/
function tipsy_uninstall() {
variable_del('tipsy');
}
Functions
Name | Description |
---|---|
tipsy_install | Implements hook_install(). |
tipsy_uninstall | Implements hook_uninstall(). |