function extlink_modules_installed in External Links 8
Implements hook_modules_installed().
File
- ./
extlink.module, line 18 - This is the External Links module.
Code
function extlink_modules_installed($modules) {
if (in_array('extlink', $modules)) {
// Be friendly to your users: what to do after install?
$url = Url::fromRoute('extlink_admin.settings');
if (PHP_SAPI != 'cli') {
\Drupal::messenger()
->addMessage(t('You can now <a href="@extlink_admin">configure the External Links module</a> for your site.', [
'@extlink_admin' => $url
->toString(),
]), 'status');
}
}
}