You are here

function _memcache_statistics_link in Memcache API and Integration 6

Same name and namespace in other branches
  1. 7 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 176
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 '';
  }
}