You are here

function moderated_content_bulk_publish_page_attachments in moderated content bulk publish 1.0.x

Same name and namespace in other branches
  1. 8 moderated_content_bulk_publish.module \moderated_content_bulk_publish_page_attachments()
  2. 2.0.x moderated_content_bulk_publish.module \moderated_content_bulk_publish_page_attachments()

Implements hook_page_attachments().

Adds the moderated-content-bulk-publish libraries to each page.

File

./moderated_content_bulk_publish.module, line 42
moderated_content_bulk_publish module.

Code

function moderated_content_bulk_publish_page_attachments(array &$page) {
  $page['#attached']['library'][] = 'moderated_content_bulk_publish/moderated-content-bulk-publish';
}