You are here

function context_contrib_context_reactions in Context 6.2

Same name and namespace in other branches
  1. 6 context_contrib/context_contrib.module \context_contrib_context_reactions()

Implementation of hook_context_reactions().

File

context_contrib/context_contrib.module, line 55

Code

function context_contrib_context_reactions() {
  $items = array();

  // CSS Injector
  if (module_exists('css_injector')) {
    $items['css_injector'] = array(
      '#title' => t('CSS injector'),
      '#description' => t('Inject the selected css when this context is set.'),
      '#options' => _context_contrib_get_css_injector(),
      '#type' => 'checkboxes',
    );
  }

  // JS Injector
  if (module_exists('js_injector')) {
    $items['js_injector'] = array(
      '#title' => t('JS injector'),
      '#description' => t('Inject the selected js when this context is set.'),
      '#options' => _context_contrib_get_js_injector(),
      '#type' => 'checkboxes',
    );
  }
  return $items;
}