function _mobile_switch_get_browscap_details in Mobile Switch 6
Same name and namespace in other branches
- 7 mobile_switch.module \_mobile_switch_get_browscap_details()
Helper function to get browscap details.
Parameters
$browser: Associative array from browscap.
Return value
string HTML table contains browscap details.
See also
mobile_switch_preprocess_page()
1 call to _mobile_switch_get_browscap_details()
- mobile_switch_preprocess_page in ./
mobile_switch.module - Display a user agent message or browscap details.
File
- ./
mobile_switch.module, line 309 - Simple theme switch for mobile devices, detected by browscap.
Code
function _mobile_switch_get_browscap_details($browser) {
$rows = array();
foreach ($browser as $key => $value) {
$rows[] = array(
$key,
filter_xss_admin($value),
);
}
return theme('table', array(
'',
'',
), $rows, array(
'id' => 'mobile-switch-browscap-details',
));
}