zurb_twentytwenty.install in ZURB TwentyTwenty 7
File
zurb_twentytwenty.install
View source
<?php
function zurb_twentytwenty_requirements($phase) {
$requirements = array();
switch ($phase) {
case 'install':
case 'runtime':
$file_exists = file_exists(libraries_get_path('twentytwenty') . '/js/jquery.twentytwenty.js');
$requirements['zurb_twentytwenty'] = array(
'title' => t('ZURB TwentyTwenty Plugin'),
'value' => t('!msg', array(
'!msg' => $file_exists ? 'Installed' : 'The ' . l('ZURB TwentyTwenty', 'https://github.com/zurb/twentytwenty') . ' was not found. Please ' . l('download', 'https://github.com/zurb/twentytwenty') . ' it into the Libraries folder (sites/all/libraries/twentytwenty).',
)),
'severity' => $file_exists ? REQUIREMENT_OK : REQUIREMENT_ERROR,
);
break;
}
return $requirements;
}