You are here

function cmd_condition::execute in Context Mobile Detect 7.2

Same name and namespace in other branches
  1. 7 plugins/context_mobile_detect_condition.inc \cmd_condition::execute()

File

plugins/context_mobile_detect_condition.inc, line 20
The file, which controls Mobile Device plugin.

Class

cmd_condition
Main context class to detect user's device.

Code

function execute() {
  $data = _context_mobile_detect_detect(FALSE);
  foreach ($this
    ->get_contexts($data['device']) as $context) {
    $this
      ->condition_met($context, $data['device']);
  }
}