commerce-8.x-2.8/commerce.install

commerce.install
<?php

/**
 * @file
 * Contains install and update functions for Commerce.
 */

/**
 * Implements hook_requirements().
 */
function commerce_requirements($phase) {
  $requirements = [];
  if ($phase == 'install' || $phase == 'runtime') {
    if (!extension_loaded('bcmath')) {
      $requirements['commerce'] = [
        'description' => t('Commerce requires the bcmath PHP extension.'),
        'severity' => REQUIREMENT_ERROR,
      ];
    }
  }

  return $requirements;
}

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

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