Version 1
[yaffs-website] / web / modules / contrib / layouter / layouter.api.php
diff --git a/web/modules/contrib/layouter/layouter.api.php b/web/modules/contrib/layouter/layouter.api.php
new file mode 100644 (file)
index 0000000..b3f6daf
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+/**
+ * @file
+ * Contains declaration of hook_layouter_templates_info.
+ *
+ * @see hook_layouter_templates_info().
+ */
+
+/**
+ * Write your custom layout templates by implementing this hook.
+ * Template must have structure:
+ *
+ * LAYOUT_NAME = [
+ *   'title' => t('LAYOUT_TITLE'),
+ *   'fields' => [
+ *     'FIELD_NAME' => [
+ *       'type' => 'FIELD_TYPE', (Required, allowed: text, image)
+ *       'title' => t('FIELD_TITLE'), (Optional)
+ *       'description' => t('ADDITIONAL_DESCRIPTION'), (Optional)
+ *     ],
+ *   ],
+ *   'theme' => 'LAYOUT_THEME_NAME',
+ * ];
+ */
+function hook_layouter_templates_info() {}