function devel_get_core_version in Devel 6
Same name and namespace in other branches
- 7 devel.module \devel_get_core_version()
3 calls to devel_get_core_version()
- devel_doc_function_form in ./
devel.module - devel_function_reference in ./
devel.module - Returns a list of all currently defined user functions in the current request lifecycle, with links their documentation.
- devel_query_table in ./
devel.module - Adds a table at the bottom of the page cataloguing data on all the database queries that were made to generate the page.
File
- ./
devel.module, line 1008
Code
function devel_get_core_version($version) {
$version_parts = explode('.', $version);
// Map from 4.7.10 -> 4.7
if ($version_parts[0] < 5) {
return $version_parts[0] . '.' . $version_parts[1];
}
else {
return $version_parts[0];
}
}