You are here

function coffee_page_build in Coffee 7.2

Implements hook_page_build().

File

./coffee.module, line 59
Coffee primary module file

Code

function coffee_page_build() {

  // Only users with the permission "access coffee" can use Coffee.
  if (user_access('access coffee')) {

    // Add the javascript and css files.
    drupal_add_library('system', 'ui.autocomplete');
    drupal_add_js(drupal_get_path('module', 'coffee') . '/js/coffee.js', array(
      'type' => 'file',
    ));
    drupal_add_css(drupal_get_path('module', 'coffee') . '/css/coffee.css', array(
      'type' => 'file',
    ));
  }
}