83256b49fe3c810522be6c23b20b44389eb833b4
[yaffs-website] / web / modules / contrib / fontyourface / modules / fontscom_api / fontscom_api.install
1 <?php
2
3 /**
4  * @file
5  * Fonts.com API install file.
6  */
7
8 use Drupal\Core\Url;
9
10 /**
11  * Implements hook_install().
12  */
13 function fontscom_api_install() {
14   module_set_weight('fontscom_api', 10);
15   $url = Url::fromRoute('font.settings');
16   drupal_set_message(t('Fonts.com settings needs to be set up in order to import fonts from Fonts.com. Please use @link to import Fonts.com fonts.', ['@link' => \Drupal::l('@font-your-face settings', $url)]));
17 }
18
19 /**
20  * Implements hook_uninstall().
21  */
22 function fontscom_api_uninstall() {
23   fontyourface_delete('fontscom_api');
24 }