function mobile_tools_configuration_options in Mobile Tools 6
Same name and namespace in other branches
- 6.3 mobile_tools.admin.inc \mobile_tools_configuration_options()
- 7.2 mobile_tools.admin.inc \mobile_tools_configuration_options()
Helper function to return the configuration options
File
- ./
mobile_tools.admin.inc, line 254 - Adminstrative pages for Mobile Tools
Code
function mobile_tools_configuration_options($configuration) {
switch ($configuration) {
case 'device handling':
$options = array(
'nothing' => t('Do nothing, just provide the $_SESSION[\'mobile_device\'] variable'),
'redirect' => t('Automatic redirection to mobile or desktop site'),
);
break;
case 'site type':
$options = array(
'mobile' => t('Only the mobile site'),
'desktop' => t('only the deskop site'),
'mobile-desktop' => t('for both mobile and desktop site'),
);
break;
}
return $options;
}