Version 1
[yaffs-website] / web / modules / contrib / layout_plugin / layout_plugin.api.php
diff --git a/web/modules/contrib/layout_plugin/layout_plugin.api.php b/web/modules/contrib/layout_plugin/layout_plugin.api.php
new file mode 100644 (file)
index 0000000..651b3be
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+/**
+ * @file
+ * Hooks provided by the Layout Plugin module.
+ */
+
+/**
+ * @addtogroup hooks
+ * @{
+ */
+
+/**
+ * Allow modules to alter layout plugin definitions.
+ *
+ * @param array[] $definitions
+ *   The array of layout definitions, keyed by plugin ID.
+ */
+function hook_layout_alter(&$definitions) {
+  // Remove a layout.
+  unset($definitions['twocol']);
+}
+
+/**
+ * @} End of "addtogroup hooks".
+ */