extlink.install 585 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @file
  4. * Install hook for the External Links module.
  5. */
  6. /**
  7. * Implements hook_install().
  8. */
  9. function extlink_install() {
  10. // Weight needs to be 1 for compatibility with SpamSpan.
  11. module_set_weight('extlink', 1);
  12. // Be friendly to your users: what to do after install?
  13. $url = \Drupal\Core\Url::fromUri('base://admin/config/user-interface/extlink');
  14. if (PHP_SAPI != 'cli') {
  15. drupal_set_message(t('You can now <a href="@extlink_admin">configure the External Links module</a> for your site.',
  16. ['@extlink_admin' => $url->toString()]), 'status');
  17. }
  18. }