function _mobile_switch_get_browscap_details in Mobile Switch 7
Same name and namespace in other branches
- 6 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
1 call to _mobile_switch_get_browscap_details()
- mobile_switch_page_alter in ./mobile_switch.module 
- Implements hook_page_alter().
File
- ./mobile_switch.module, line 294 
- 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(
    'header' => array(
      '',
      '',
    ),
    'rows' => $rows,
    'attributes' => array(
      'id' => 'browscap-details',
    ),
  ));
}