function modal_page_install in Modal 4.1.x
Same name and namespace in other branches
- 8.3 modal_page.install \modal_page_install()
- 8 modal_page.install \modal_page_install()
- 8.2 modal_page.install \modal_page_install()
- 5.0.x modal_page.install \modal_page_install()
- 4.0.x modal_page.install \modal_page_install()
Implements hook_install().
File
- ./
modal_page.install, line 22 - Install, update and uninstall functions for the Modal Page.
Code
function modal_page_install() {
$messenger = \Drupal::messenger();
$messenger
->addStatus(t('Modal Page load bootstrap.min.js by default, if this library is already loaded in other place, you can verify a option <b>Don\'t load external JS Bootstrap</b> on <a href="@modal_page_settings">Modal Settings</a>', [
'@modal_page_settings' => Url::fromRoute('modal_page.settings')
->toString(),
]));
}