You are here

function date_recur_requirements in Recurring Dates Field 8

Same name and namespace in other branches
  1. 8.2 date_recur.install \date_recur_requirements()
  2. 3.x date_recur.install \date_recur_requirements()
  3. 3.0.x date_recur.install \date_recur_requirements()
  4. 3.1.x date_recur.install \date_recur_requirements()

Implements hook_requirements().

File

./date_recur.install, line 11
Install, update and uninstall functions for date_recur module.

Code

function date_recur_requirements($phase) {
  $requirements = [];
  if (!class_exists('\\RRule\\RRule')) {
    $requirements['date_recur_dependencies'] = [
      'title' => t('Date recur'),
      'description' => \t('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;
}