You are here

function autofloat_install in AutoFloat 6.2

Same name and namespace in other branches
  1. 8 autofloat.install \autofloat_install()
  2. 6 autofloat.install \autofloat_install()
  3. 7.2 autofloat.install \autofloat_install()
  4. 7 autofloat.install \autofloat_install()

Implements hook_install().

File

./autofloat.install, line 10
Sets post-install messages and deletes variables when uninstalled.

Code

function autofloat_install() {
  $t = get_t();
  $text = $t('Add the AutoFloat filter to a text format under !formats_link. Move it below other image related filters in the filter processing order. AutoFloat settings are available under !config_link.', array(
    '!formats_link' => l($t('Site configuration > Input formats'), 'admin/settings/filters'),
    '!config_link' => l($t('Site configuration >  AutoFloat'), 'admin/settings/autofloat'),
  ));
  drupal_set_message($text);
}