function delete_mini_module($module) { global $Sql; $query = "SELECT id, object, enabled, block, position FROM " . DB_TABLE_MENUS . " WHERE\n class='" . strtolower(MODULE_MINI_MENU__CLASS) . "' AND\n title LIKE '" . strtolower(strprotect($module)) . "/%';"; $result = $Sql->query_while($query, __LINE__, __FILE__); while ($row = $Sql->fetch_assoc($result)) { MenuService::delete(MenuService::_load($row)); } }