<?php

/**
 * Create a new (inactive) info popup entry for a project.
 *
 * @param string $project - project name
 * @return int - id of the new entry
 */

use QUI\InfoPopup\Handler;

QUI::getAjax()->registerFunction(
    'package_quiqqer_info-popup_ajax_create',
    function ($project) {
        return Handler::create(QUI::getProject($project));
    },
    ['project'],
    'quiqqer.infoPopup.edit'
);
