You are here

function coffee_init in Coffee 6

Same name and namespace in other branches
  1. 7 coffee.module \coffee_init()

Implements hook_init().

File

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

Code

function coffee_init() {

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

    // Add the javascript and css files.
    drupal_add_js(drupal_get_path('module', 'coffee') . '/coffee.js');
    drupal_add_css(drupal_get_path('module', 'coffee') . '/coffee.css');
  }
}