5 * Fonts.com API install file.
11 * Implements hook_install().
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)]));
20 * Implements hook_uninstall().
22 function fontscom_api_uninstall() {
23 fontyourface_delete('fontscom_api');