Version 1
[yaffs-website] / web / modules / contrib / fontyourface / modules / adobe_edge_fonts / adobe_edge_fonts.install
diff --git a/web/modules/contrib/fontyourface/modules/adobe_edge_fonts/adobe_edge_fonts.install b/web/modules/contrib/fontyourface/modules/adobe_edge_fonts/adobe_edge_fonts.install
new file mode 100644 (file)
index 0000000..eaafe47
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * @file
+ * Adobe Edge Fonts install file.
+ */
+
+use Drupal\Core\Url;
+
+/**
+ * Implements hook_install().
+ */
+function adobe_edge_fonts_install() {
+  module_set_weight('adobe_edge_fonts', 10);
+  $url = Url::fromRoute('font.settings');
+  drupal_set_message(t('Due to the number of fonts, automated import from install for Adobe Edge Fonts is disabled. Please use @link to import Adobe Edge Fonts.', ['@link' => \Drupal::l('@font-your-face settings', $url)]));
+}
+
+/**
+ * Implements hook_uninstall().
+ */
+function adobe_edge_fonts_uninstall() {
+  fontyourface_delete('adobe_edge_fonts');
+}