function responsive_menu_check_library_version in Responsive and off-canvas menu 8.3
Same name and namespace in other branches
- 8.2 responsive_menu.install \responsive_menu_check_library_version()
- 4.4.x responsive_menu.install \responsive_menu_check_library_version()
- 4.0.x responsive_menu.install \responsive_menu_check_library_version()
- 4.1.x responsive_menu.install \responsive_menu_check_library_version()
- 4.3.x responsive_menu.install \responsive_menu_check_library_version()
Checks a version string against a requirement string.
Parameters
string $version: The discovered version to check.
string $requirement: The required version to check against.
Return value
bool Success or failure boolean.
1 call to responsive_menu_check_library_version()
- responsive_menu_requirements in ./
responsive_menu.install - Implements hook_requirements().
File
- ./
responsive_menu.install, line 209 - Contains install and update functions.
Code
function responsive_menu_check_library_version($version, $requirement) {
if ($version >= $requirement) {
return TRUE;
}
return FALSE;
}