We were adding specific theming support of windows phone by :
- adding a new item in function mobile_tools_mobile_tools_device_groups()
- adding a new case in mobile_tools_mobile_tools_detect_device()
In mobile_tools.module.
We discovered that in in mobile_tools.admin.inc (229) :
$mobile_groups = module_invoke(variable_get('mobile_tools_device_detection', 'mobile_tools'), 'device_groups');
is not resolved as function mobile_tools_mobile_tools_device_groups().
To work correctly, it can be patched with :
$mobile_groups = module_invoke(variable_get('mobile_tools_device_detection', 'mobile_tools').'_mobile_tools', 'device_groups');
Our current knownledge cannot determine if it's a problem of :
- mobile_tools_device_detection global variable
- module_invoke incorrect answer
- incorrect name of function (mobile_tools_device_groups() instead of mobile_tools_mobile_tools_device_groups())
Comments
Comment #1
devin carlson commentedThe 7.x-2.x branch of Mobile Tools in now unsupported.