-$pages = Array("Overview" => "overview.php",
- "Users" => "users.php",
- "Channels" => "channels.php",
- "Server Bans" => "tkl.php",
- "Spamfilter" => "spamfilter.php",
- "News" => "news.php");
+$pages = Array("Overview" => "index.php",
+ "Users" => "users/index.php",
+ "Channels" => "channels.php",
+ "Server Bans" => "tkl.php",
+ "Spamfilter" => "spamfilter.php",
+ "News" => "news.php");
+
+
+Hook::run(HOOKTYPE_NAVBAR, $pages);
+
+/* Example to add new menu item:
+ *
+ * class MyPlugin
+ * {
+ *
+ * function __construct()
+ * {
+ * Hook::func(HOOKTYPE_NAVBAR, [$this, 'add_menu'])
+ * }
+ *
+ * function add_menu(&$pages) // this should pass by reference (using the & prefix)
+ * {
+ * $page_name = "My New Page";
+ * $page_link = "link/to/page.php";
+ * $pages[$page_name] = $page_link;
+ * }
+ * }
+*/
\ No newline at end of file