aboutsummaryrefslogtreecommitdiffstats
path: root/include/comanche.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/comanche.php')
-rw-r--r--include/comanche.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/comanche.php b/include/comanche.php
index 13146ded4..b0eac475d 100644
--- a/include/comanche.php
+++ b/include/comanche.php
@@ -223,3 +223,28 @@ function comanche_region(&$a,$s) {
return $s;
}
+
+/*
+ * @function register_page_template($arr)
+ * Registers a page template/variant for use by Comanche selectors
+ * @param array $arr
+ * 'template' => template name
+ * 'variant' => array(
+ * 'name' => variant name
+ * 'desc' => text description
+ * 'regions' => array(
+ * 'name' => name
+ * 'desc' => text description
+ * )
+ * )
+ */
+
+
+function register_page_template($arr) {
+ get_app()->page_layouts[$arr['template']] = array($arr['variant']);
+ return;
+}
+
+
+
+