Commit e726e127 authored by gmclelland's avatar gmclelland Committed by Alli Price
Browse files

Issue #1929788 by gmclelland: Use hook_page_build() instead of hook_init()

parent e310051c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -54,9 +54,9 @@ function coffee_menu() {
}

/**
 * Implements hook_init().
 * Implements hook_page_build().
 */
function coffee_init() {
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.