You are here

function footermap_footer in footermap: a footer site map 6

Same name and namespace in other branches
  1. 5.2 footermap.module \footermap_footer()
  2. 5 footermap.module \footermap_footer()

File

./footermap.module, line 141

Code

function footermap_footer() {
  if (variable_get('footer_legacy', 0) == 0) {
    return;
  }
  if (variable_get('footer_cache', 0) == 1) {
    $vartime = cache_get('variables', 'cache')->created;
    $cached = cache_get('footermap', 'cache');
  }
  if (isset($o->data) && $o->created >= $vartime) {
    return $cached;
  }
  drupal_add_css(drupal_get_path('module', 'footermap') . '/footermap.css', 'module', 'all', TRUE);
  $o = _footermap_render();
  if (variable_get('footer_cache', 0) == 1) {
    cache_set('footermap', $o, 'cache', CACHE_TEMPORARY);
  }
  return $o;
}