function _responsive_preview_get_devices in Responsive Theme Preview 7
Returns the default devices available for preview.
2 calls to _responsive_preview_get_devices()
- responsive_preview_install in ./
responsive_preview.install - Implements hook_install().
- responsive_preview_update_7000 in ./
responsive_preview.install - Update configuration to the DB schema.
File
- ./
responsive_preview.install, line 235 - responsive_preview.install
Code
function _responsive_preview_get_devices() {
return array(
'small' => array(
'name' => 'small',
'label' => 'Smart phone',
'width' => 768,
'height' => 1280,
'dppx' => 2,
'orientation' => 'portrait',
'weight' => 0,
'status' => 0,
'langcode' => 'en',
),
'medium' => array(
'name' => 'medium',
'label' => 'Tablet',
'width' => 800,
'height' => 1280,
'dppx' => 1.325,
'orientation' => 'portrait',
'weight' => 1,
'status' => 0,
'langcode' => 'en',
),
'large' => array(
'name' => 'large',
'label' => 'Typical desktop',
'width' => 1366,
'height' => 768,
'dppx' => 1,
'orientation' => 'landscape',
'weight' => 2,
'status' => 0,
'langcode' => 'en',
),
'iphone6' => array(
'name' => 'iphone6',
'label' => 'iPhone 6',
'width' => 750,
'height' => 1334,
'dppx' => 2,
'orientation' => 'portrait',
'weight' => 3,
'status' => 1,
'langcode' => 'en',
),
'iphone6p' => array(
'name' => 'iphone6p',
'label' => 'iPhone 6+',
'width' => 1080,
'height' => 1980,
'dppx' => 2.46,
'orientation' => 'portrait',
'weight' => 4,
'status' => 1,
'langcode' => 'en',
),
'nexus5' => array(
'name' => 'nexus5',
'label' => 'Nexus 5',
'width' => 1080,
'height' => 1920,
'dppx' => 3,
'orientation' => 'portrait',
'weight' => 5,
'status' => 1,
'langcode' => 'en',
),
'nexus6' => array(
'name' => 'nexus6',
'label' => 'Nexus 6',
'width' => 1440,
'height' => 2560,
'dppx' => 3.5,
'orientation' => 'portrait',
'weight' => 6,
'status' => 1,
'langcode' => 'en',
),
'nexus9' => array(
'name' => 'nexus9',
'label' => 'Nexus 9',
'width' => 1536,
'height' => 2048,
'dppx' => 2,
'orientation' => 'portrait',
'weight' => 7,
'status' => 1,
'langcode' => 'en',
),
);
}