static_generator-8.x-1.x-dev/static_generator.install

static_generator.install
<?php
/**
 * @file
 * Install, update and uninstall functions for the static_generator module.
 */

/**
 * Implements hook_requirements().
 */
//function static_generator_requirements($phase) {
//  $has_curl = function_exists('curl_init');
//  $requirements = array();
//  $requirements['curl'] = array(
//    'title' => t('cURL'),
//    'value' => $has_curl ? t('Enabled') : t('Not found'),
//  );
//  if (!$has_curl) {
//    $requirements['curl']['severity'] = REQUIREMENT_ERROR;
//    $requirements['curl']['description'] = t('The Tally module could not be installed because the PHP <a href="http://php.net/manual/curl.setup.php">cURL</a> library is not available.');
//  }
//  return $requirements;
//}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc