7cfa10dc43a87aea8f11f9b33cd1237dc339a89c
[yaffs-website] / web / modules / contrib / fontyourface / modules / google_fonts_api / google_fonts_api.install
1 <?php
2
3 /**
4  * @file
5  * Google Fonts install file.
6  */
7
8 use Drupal\Core\Url;
9
10 /**
11  * Implements hook_install().
12  */
13 function google_fonts_api_install() {
14   module_set_weight('google_fonts_api', 10);
15   $url = Url::fromRoute('font.settings');
16   drupal_set_message(t('Due to the number of fonts, automated import from install for Google Fonts is disabled. Please use @link to import Google Fonts.', ['@link' => \Drupal::l('@font-your-face settings', $url)]));
17 }
18
19 /**
20  * Implements hook_uninstall().
21  */
22 function google_fonts_api_uninstall() {
23   fontyourface_delete('google_fonts_api');
24 }