<?php

/**
 * Delete an info popup entry.
 *
 * @param int $id - entry id
 * @return bool
 */

use QUI\InfoPopup\Handler;

QUI::getAjax()->registerFunction(
    'package_quiqqer_info-popup_ajax_delete',
    function ($id) {
        Handler::delete((int)$id);

        return true;
    },
    ['id'],
    'quiqqer.infoPopup.edit'
);
