You are here

function lazy_enable in Lazy-load 7

Implements hook_enable().

File

./lazy.install, line 37
Install, update, and uninstall functions for the Lazy-load module.

Code

function lazy_enable() {
  $options = array(
    '!config' => url('admin/config/content/lazy'),
    '%filter' => 'Lazy-load',
    '!path' => url('admin/config/content/formats'),
  );
  $message = t('The <a href="!config">Lazy-load</a> module was installed. The new %filter filter should be enabled in desired <a href="!path">text-formats</a>.', $options);
  drupal_set_message($message, 'warning');
}