Version 1
[yaffs-website] / web / modules / contrib / fontyourface / modules / typekit_api / typekit_api.install
diff --git a/web/modules/contrib/fontyourface/modules/typekit_api/typekit_api.install b/web/modules/contrib/fontyourface/modules/typekit_api/typekit_api.install
new file mode 100644 (file)
index 0000000..22c83a7
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * @file
+ * Typekit API install file.
+ */
+
+use Drupal\Core\Url;
+
+/**
+ * Implements hook_install().
+ */
+function typekit_api_install() {
+  module_set_weight('typekit_api', 10);
+  $url = Url::fromRoute('font.settings');
+  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)]));
+}
+
+/**
+ * Implements hook_uninstall().
+ */
+function typekit_api_uninstall() {
+  fontyourface_delete('typekit_api');
+}