function _homebox_check_php in Homebox 6.3
Same name and namespace in other branches
- 6.2 homebox.module \_homebox_check_php()
Check if PHP version is usable. Homebox 2 requires PHP of at least 5.2
Return value
TRUE if PHP is usable, otherwise FALSE
2 calls to _homebox_check_php()
- homebox_requirements in ./
homebox.module - Implementation of hook_requirements()
- theme_homebox_admin_new_page in ./
homebox.admin.inc - Theme the new-page form.
File
- ./
homebox.module, line 1559 - Homebox main file, takes care of global functions settings constants, etc.
Code
function _homebox_check_php() {
$version = explode('.', phpversion());
if ($version[0] >= 5) {
if ($version[0] == 5 && $version[1] < 2) {
return FALSE;
}
return TRUE;
}
return FALSE;
}