You are here

function media_wysiwyg_page_build in D7 Media 7.2

Same name and namespace in other branches
  1. 7.4 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_page_build()
  2. 7.3 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_page_build()

Implements hook_page_build().

File

modules/media_wysiwyg/media_wysiwyg.module, line 23
Primarily Drupal hooks.

Code

function media_wysiwyg_page_build(&$page) {

  // We need to load some minor CSS if media alignment is enabled.
  if (variable_get('media_wysiwyg_alignment', FALSE)) {
    $page['page_bottom']['media_wysiwyg']['#attached']['css'] = array(
      drupal_get_path('module', 'media_wysiwyg') . '/css/media_wysiwyg.base.css' => array(
        'every_page' => TRUE,
      ),
    );
  }
}