<?php

global $hooks;
$hooks->add_action('admin_menu', 'menu_admin');


function menu_admin() {
    global $menu_array;
		$dashboardmenu = array(
			array(
				"label" => "Dashboard",
				"url" => "/dashboard",
				"icon" => "fa fa-home"
			),
			array(
				"label" => "User Management",
				"url" => "/user-management",
				"icon" => "fa fa-users"
			),
			array(
				"label" => "New Registration",
				"url" => "/register-account",
				"icon" => "fa fa-plus"
			)        
		);
		$menu_array = $dashboardmenu;
}
$x = listFolderFiles(dirname(__FILE__));
foreach ($x as $key => $name) {
    include $name . '/init.php';
}