public function loadConfigsByHook($hook, $reload = false)
    {
        // Load configs from DB
        $data = $this->app->db->conn()->prepare(
            'SELECT * FROM ' . $this->app->db->getPrefix() . 'config
                         WHERE `config_loadhook` = ?');
        $data->execute(array($hook));
        $data = $data->fetchAll(\PDO::FETCH_ASSOC);
        foreach ($data as $config) {
            // Load corresponding class and get config array
            if ($reload || !$this->configExists($config['config_name'])) {
                $this->config[$config['config_name']] = $this->createConfigObject($config['config_name'], $config['config_data'], true);
            }
        }
    }