You are here

csv_serialization.install in CSV Serialization 8

Same filename and directory in other branches
  1. 8.2 csv_serialization.install

File

csv_serialization.install
View source
<?php

/**
 * @file
 */

/**
 * Implements hook_requirements().
 */
function csv_serialization_requirements($phase) {
  $requirements = [];
  if ($phase == 'install') {
    if (!class_exists('\\League\\Csv\\Writer')) {
      $requirements['league_csv'] = [
        'description' => t('CSV Serialization requires the League\\Csv library.'),
        'severity' => REQUIREMENT_ERROR,
      ];
    }
  }
  return $requirements;
}

Functions