You are here

memcache_status.install in Memcache Status 6

Same filename and directory in other branches
  1. 8 memcache_status.install
  2. 7 memcache_status.install

Memcache Status install-time module hooks.

File

memcache_status.install
View source
<?php

/**
 * @file
 * Memcache Status install-time module hooks.
 */

/**
 * Implements hook_requirements().
 */
function memcache_status_requirements($phase) {
  $requirements = array();
  $t = get_t();
  if ($phase == 'runtime') {
    $requirements['memcache_status'] = array(
      'title' => $t('Memcache status'),
      'value' => l(function_exists('memcache_debug') ? 'Enabled' : 'Disabled', 'admin/reports/status/memcache'),
    );
  }
  return $requirements;
}

Functions