Browse Source

[enh] Export contact form category.

opi 8 years ago
parent
commit
d720cd27a3

+ 20 - 0
sites/all/modules/custom/ffdn_common/ffdn_common.features.contact_categories.inc

@@ -0,0 +1,20 @@
+<?php
+/**
+ * @file
+ * ffdn_common.features.contact_categories.inc
+ */
+
+/**
+ * Implements hook_contact_categories_defaults().
+ */
+function ffdn_common_contact_categories_defaults() {
+  return array(
+    'Contact' => array(
+      'category' => 'Contact',
+      'recipients' => 'contact@ffdn.org',
+      'reply' => '',
+      'weight' => 0,
+      'selected' => 1,
+    ),
+  );
+}

+ 2 - 0
sites/all/modules/custom/ffdn_common/ffdn_common.info

@@ -2,10 +2,12 @@ name = ffdn_common
 description = Common module for ffdn.org website
 core = 7.x
 package = Custom
+dependencies[] = contact
 dependencies[] = features
 dependencies[] = file
 dependencies[] = node
 dependencies[] = text
+features[contact_categories][] = Contact
 features[features_api][] = api:2
 features[field_base][] = body
 features[field_base][] = field_attachment