You are here

function module_builder_init_library in Module Builder 7.2

Helper to load and initialize the Drupal Code Builder library.

5 calls to module_builder_init_library()
mb_addItemSubmit in includes/module_builder.pages.inc
mb_itemButtonAjax in includes/module_builder.pages.inc
mb_removeItemSubmit in includes/module_builder.pages.inc
module_builder_admin_update in includes/module_builder.admin.inc
Admin hook update form.
module_builder_page in includes/module_builder.pages.inc
Displays module builder interface via a multi-step form. The steps are:

File

./module_builder.module, line 41
Builds scaffolding for custom modules.

Code

function module_builder_init_library() {
  libraries_load('drupal-code-builder');
  \DrupalCodeBuilder\Factory::setEnvironmentLocalClass('DrupalLibrariesAPI')
    ->setCoreVersionNumber(VERSION);
}