You are here

function _context_mobile_detect_devices_types in Context Mobile Detect 7

Same name and namespace in other branches
  1. 7.2 context_mobile_detect.module \_context_mobile_detect_devices_types()

Helper function for device types retrieving

2 calls to _context_mobile_detect_devices_types()
cmd_type_condition::condition_values in plugins/context_mobile_detect_type_condition.inc
Condition values.
_context_mobile_detect_detect in ./context_mobile_detect.module

File

./context_mobile_detect.module, line 151

Code

function _context_mobile_detect_devices_types() {
  $type = array();
  $data = array(
    'iPhone',
    'BlackBerry',
    'HTC',
    'Nexus',
    'DellStreak',
    'Motorola',
    'Samsung',
    'Sony',
    'Asus',
    'Palm',
    'GenericPhone',
  );
  foreach ($data as $type) {
    $types[strtolower($type)] = $type;
  }
  return $types;
}