You are here

function _memcache_statistics_link in Memcache API and Integration 7

Same name and namespace in other branches
  1. 6 memcache.install \_memcache_statistics_link()

Add "(more information)" link after memcache version if memcache_admin module is enabled and user has access to memcache statistics.

1 call to _memcache_statistics_link()
memcache_requirements in ./memcache.install
Implements hook_requirements().

File

./memcache.install, line 249
Install, update and uninstall functions for the memcache module.

Code

function _memcache_statistics_link() {
  $t = get_t();
  if (module_exists('memcache_admin') && user_access('access memcache statistics')) {
    return ' (' . l($t('more information'), 'admin/reports/memcache') . ')';
  }
  else {
    return '';
  }
}