function views_slideshow_slider_requirements in Views Slideshow Slider 6.2
Same name and namespace in other branches
- 6.3 views_slideshow_slider.module \views_slideshow_slider_requirements()
Implementation of hook_requirements().
File
- ./
views_slideshow_slider.module, line 46 - Views Slideshow: slider has options for working with node views.
Code
function views_slideshow_slider_requirements($phase) {
$requirements = array();
$t = get_t();
$version = jquery_ui_get_version();
$requirements['slider_jquery_ui'] = array(
'title' => $t('Slider jQuery UI compatibility'),
'value' => $version,
);
if (version_compare($version, VS_SLIDER_JQUERY_UI_VERSION) < 0) {
$requirements['slider_jquery_ui']['descripion'] = $t('Views Slideshow Slider needs at least 1.7 version of the jQuery UI.');
$requirements['slider_jquery_ui']['severity'] = REQUIREMENT_ERROR;
}
return $requirements;
}