You are here

function _radioactivity_get_memcached_availability_string in Radioactivity 6

2 calls to _radioactivity_get_memcached_availability_string()
radioactivity_admin_general_form in ./radioactivity-admin-ui.inc
@file Radioactivity core admin UI.
radioactivity_requirements in ./radioactivity.module

File

./radioactivity.module, line 165

Code

function _radioactivity_get_memcached_availability_string($status) {
  $t = get_t();
  switch ($status) {
    case RADIOACTIVITY_MEMCACHE_OK:
      return $t('Available');
    case RADIOACTIVITY_MEMCACHE_NO_BIN:
      return $t('Memcached unreachable for bin %s', array(
        '%s' => 'radioactivity',
      ));
    case RADIOACTIVITY_MEMCACHE_NO_MODULE:
      return $t('Memcache not available');
    default:
      return $t('Bad status code %s', array(
        '%s' => $status,
      ));
  }
}