Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: E-commerce, Integrations
- Created by jedihe on , updated