<?php
/**
 * Loader file for Form Builder Module.
 *
 * @category Forms
 * @package  Mtc_Form_Builder
 * @author   mtc. Martins Fridenbergs <martins.fridenbergs@mtcmedia.co.uk>
 */

// The defaults are only set on the first load.
// After this they are available to amend in site settings.
if (!defined('FORM_BUILDER_ENABLED')) {
    include_once __DIR__.'/includes/install.php';
}

// Add hooks
HooksAdapter::add_action(
    'render_form',
    '\Mtc\Modules\FormBuilder\Classes\FormManager::render',
    10, // Priority - 10 is default
    1, // Accepted args from hook
    [$twig] // forced args passed to hook
);
