You are here

function activemenu_footer in Javascript Tools 5

Implementation of hook_footer().

Add a theme-specific css file if needed. Pass Javascript data to the browser.

File

activemenu/activemenu.module, line 66
Add AJAX-based tree menu to navigation menu.

Code

function activemenu_footer() {
  global $theme;
  $file = drupal_get_path('module', 'activemenu') . '/theme/' . $theme . '.css';
  if (file_exists($file)) {
    drupal_add_css($file);
  }
  else {
    drupal_add_css(drupal_get_path('module', 'activemenu') . '/activemenu.css', 'theme');
  }
}