You are here

function fancybox_requirements in fancyBox 7.2

Implements hook_requirements().

File

./fancybox.install, line 47
Provides the fancyBox jQuery plugin, a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages, and an extensive settings page for configuring fancyBox settings and how fancyBox…

Code

function fancybox_requirements($phase) {
  $requirements = array();
  $t = get_t();
  if ($phase == 'install') {
    if (module_exists('libraries') && !function_exists('libraries_detect')) {
      $requirements['libraries'] = array(
        'title' => $t('Incorrect Libraries API version'),
        'description' => $t('fancyBox 7.x-2.x requires Libaries API 7.x-2.0 or higher.'),
        'severity' => REQUIREMENT_ERROR,
      );
    }
  }
  return $requirements;
}