You are here

smart_date_recur.install in Smart Date 3.0.x

File

modules/smart_date_recur/smart_date_recur.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for smart_date_recur module.
 */
declare (strict_types=1);

/**
 * Implements hook_requirements().
 */
function smart_date_recur_requirements($phase) {
  $requirements = [];
  if (!class_exists('\\Recurr\\Rule')) {
    $requirements['smart_date_recur_dependencies'] = [
      'title' => t('Smart date recur'),
      'description' => \t('Smart Date Recur has unmet Composer dependencies. Read the <a href="@url">documentation</a> on how to install them.', [
        '@url' => 'https://www.drupal.org/node/2627292',
      ]),
      'severity' => \REQUIREMENT_ERROR,
    ];
  }
  return $requirements;
}

Functions