You are here

function mobile_tools_context_condition_mobile::condition_form in Mobile Tools 7.2

Configuration form

Overrides context_condition::condition_form

File

mobile_tools_context/mobile_tools_context.condition_mobile.inc, line 32
Integration with the Context module

Class

mobile_tools_context_condition_mobile
@file Integration with the Context module

Code

function condition_form($context) {
  $form = parent::condition_form($context);
  $form['#type'] = 'checkboxes';
  $form['#description'] = t('Trigger this context when the given device groups are active.');
  $form['#options'] = mobile_tools_device_groups();
  $form['#default_value'] = $this
    ->fetch_from_context($context, 'values');
  return $form;
}