You are here

function flexslider_requirements in Flex Slider 7

Same name and namespace in other branches
  1. 8.2 flexslider.install \flexslider_requirements()
  2. 7.2 flexslider.install \flexslider_requirements()

Implements hook_requirements().

File

./flexslider.install, line 96
Installation actions for Flex Slider

Code

function flexslider_requirements($phase) {
  $requirements = array();

  // Ensure translations don't break at install time
  $t = get_t();

  // Check to see if the flexslider library is available
  if ($phase == 'runtime') {
    $requirements['flexslider'] = array(
      'title' => $t('Flex Slider'),
      // @todo have the version automatically detected
      'description' => $t('Version 1.8 installed'),
      'severity' => REQUIREMENT_OK,
    );
    _flexslider_requirements_library_installed($requirements);
  }
  return $requirements;
}