function context_mobile_detect_context_page_condition in Context Mobile Detect 7
Same name and namespace in other branches
- 7.2 context_mobile_detect.module \context_mobile_detect_context_page_condition()
Allow over modules to alter condition.
File
- ./
context_mobile_detect.module, line 68
Code
function context_mobile_detect_context_page_condition() {
// Detect mobile device
if ($plugin = context_get_plugin('condition', 'cmd')) {
$plugin
->execute();
}
// Detect mobile device type
if ($plugin = context_get_plugin('condition', 'cmd_type')) {
$plugin
->execute();
}
}