You are here

function vimeo_video_uploader_requirements in Vimeo Video Uploader 8

Same name and namespace in other branches
  1. 8.4 vimeo_video_uploader.install \vimeo_video_uploader_requirements()
  2. 7.2 vimeo_video_uploader.install \vimeo_video_uploader_requirements()

Implementation of hook_requirements().

File

./vimeo_video_uploader.install, line 54

Code

function vimeo_video_uploader_requirements($phase) {
  $requirements = array();
  if ($phase == 'install') {
    if (!is_dir('vendor/vimeo')) {
      $requirements['vimeo-api'] = array(
        'severity' => REQUIREMENT_ERROR,
        'description' => t('The required Vimeo library is not found.
                            See modules README.txt for instructions.', array(
          '@link' => 'https://www.drupal.org/node/2726121',
        )),
      );
    }
  }
  return $requirements;
}