csv_serialization.install in CSV Serialization 8
Same filename and directory in other branches
File
csv_serialization.installView 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
Name | Description |
---|---|
csv_serialization_requirements | Implements hook_requirements(). |