Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Exposes BlockAdBlock plugin through the Libraries API. This is intended to be used by other modules or by any custom code you write.

Usage

Recommended usage is in the #attached property of a render array:

function mymodule_preprocess_html(&$variables) {
  $variables['page']['page_bottom']['#attached']['libraries_load'][] = array('blockadblock');
}

Alternate usage is via libraries_load():

function mymodule_some_function() {
  libraries_load('blockadblock');
}

For the JavaScript side, please refer to the documentation for the original plugin.

Notes

  • The library file is set to the footer scope, so it'll load as part of the script tags right before the closing body tag.

Project information

  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Module categories: E-commerce, Integrations
  • Created by jedihe on , updated