function vimeo_video_uploader_requirements in Vimeo Video Uploader 7.2
Same name and namespace in other branches
- 8.4 vimeo_video_uploader.install \vimeo_video_uploader_requirements()
- 8 vimeo_video_uploader.install \vimeo_video_uploader_requirements()
Implements hook_requirement().
File
- ./
vimeo_video_uploader.install, line 60 - Installation file for the Vimeo Video Uploader.
Code
function vimeo_video_uploader_requirements($phase) {
$requirements = array();
$t = get_t();
if ($phase == 'install' && function_exists("libraries_get_path")) {
$viemo_lib_path = libraries_get_path("vimeo-lib-api");
if (!$viemo_lib_path) {
$requirements['vimeo-lib'] = array(
'severity' => REQUIREMENT_ERROR,
'description' => $t('The required Vimeo library is not found.
See the Viemo Uploader module <a href="!link">documentation</a> for instructions.
You can download the library <a href="!link2">here</a>', array(
'!link' => url('https://www.drupal.org/node/2726121'),
'!link2' => url("https://github.com/vimeo/vimeo.php"),
)),
);
}
}
return $requirements;
}