aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 93f12b057..6f0bad1e6 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -2335,6 +2335,19 @@
}
}
+/**
+ * Page handler for search
+ *
+ * @param array $page Page elements from pain page handler
+ */
+ function search_page_handler($page) {
+ if (isset($page[0])) {
+ global $CONFIG;
+ set_input('tag',$page[0]);
+ include_once($CONFIG->path . "search/index.php");
+ }
+ }
+
/**
* Returns a viewable list of entities based on the registered types
*
@@ -2723,6 +2736,7 @@
*/
function entities_init() {
register_page_handler('view','entities_page_handler');
+ register_page_handler('search','search_page_handler');
// Allow a permission override for recursive entity deletion
// TODO: Can this be done better?