Skip to content
Code-Schnipsel Gruppen Projekte
getAvailableBricks.php 443 B
Newer Older
Henning Leutz's avatar
Henning Leutz committed
<?php

/**
 * This file contains package_quiqqer_bricks_ajax_getAvailableBricks
 */

/**
 * Returns the available bricks in the system
 *
 * @return array
 */
function package_quiqqer_bricks_ajax_getAvailableBricks()
{
    $BricksManager = new \QUI\Bricks\Manager();
Henning Leutz's avatar
Henning Leutz committed
    return $BricksManager->getAvailableBricks();
Henning Leutz's avatar
Henning Leutz committed
}

\QUI::$Ajax->register(
    'package_quiqqer_bricks_ajax_getAvailableBricks',
    false,
    'Permission::checkAdminUser'
);