function bu_get_versions in Browser update 6
2 calls to bu_get_versions()
File
- ./
bu.module, line 40
Code
function bu_get_versions($browser, $key = NULL) {
$return = array();
switch ($browser) {
case 'firefox':
$return = array(
'3',
'3.5',
'3.6',
'4',
'5',
'6',
'7',
'8',
'9',
'10',
'11',
'12',
'13',
'14',
'15',
);
break;
case 'ie':
$return = array(
'6',
'7',
'8',
'9',
);
break;
case 'opera':
$return = array(
'10.1',
'10.5',
'10.6',
'11',
);
break;
case 'safari':
$return = array(
'3',
'3.2',
'4',
'5',
);
break;
}
if ($key && isset($return[$key])) {
return $return[$key];
}
return $return;
}