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